What is hex #287C2A color?
In professional design frameworks, this hue is considered a balanced and versatile hue. It is ideal for creating smooth color harmony, digital artwork, or minimalist web components.
From a technical standpoint, this color is composed of 16% red, 49% green and 16% blue, resulting in rgb(40, 124, 42) and hsl(121, 51%, 32%).
For print media and manufacturing layout, the CMYK equivalent is (68%, 0%, 66%, 51%).
In the HSV/HSB scale, #287C2A features a hue of 121°, 68% saturation, and 49% brightness.
Hex #287C2A Color Codes & Conversions
| Closest Named Color | Forest Green Web (#228B22) |
| Hex Code | #287C2A |
| Hex8 (RGBA Hex) | #287C2AFF |
| RGB (CSS) | rgb(40, 124, 42) |
| RGBA (CSS) | rgba(40, 124, 42, 1) |
| HSL (CSS) | hsl(121, 51%, 32%) |
| HSLA (CSS) | hsla(121, 51%, 32%, 1) |
| HSV / HSB | (121°, 68%, 49%) |
| CMYK Values | (68%, 0%, 66%, 51%) |
| OKLCH (Modern CSS) | oklch(51.8% 0.143 143.5) |
| CIE-LAB (D65) | 45.68, -42.26, 36.47 |
| CIE XYZ | 8.50, 15.03, 4.64 |
| Decimal / Binary |
2653226
00101000 01111100 00101010 |
WCAG 2.1 Color Contrast & Accessibility
Check how #287C2A complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.
White Text on #287C2A
Sample preview of readable typography on top of #287C2A.
Black Text on #287C2A
Sample preview of readable typography on top of #287C2A.
HTML / CSS Live Previews & Snippets for #287C2A
Preview #287C2A in real UI elements and copy ready-to-use CSS rules.
background-color: #287C2A;
color: #287C2A;
border: 2px solid #287C2A;
:root {
--color-primary: #287C2A;
--color-primary-rgb: 40, 124, 42;
--color-complementary: #7C287A;
}
.btn-accent {
background-color: #287C2A;
color: #ffffff;
}
Hex #287C2A Color Palettes
Complementary Palette
The complementary color of #287C2A is #7C287A. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.
Analogous Palette
The analogous color scheme of #287C2A pairs with #507C28 and #287C54, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #287C2A pairs with #7C2850 and #54287C, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #287C2A uses #7C2A28 and #2A287C, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #287C2A combines #2A287C, #7C287A and #7A7C28 around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #287C2A pairs with #28507C, #7C287A and #7C5428 spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #287C2A
Tints
Tints are created by mixing #287C2A with white, producing lighter variations.
Tones
Tones are created by mixing #287C2A with gray, softening saturation.
Shades
Shades result from mixing #287C2A with black, creating deeper variations.
Hex #287C2A in Programming & CSS Frameworks
Copy the exact syntax for #287C2A in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #287C2A |
| Tailwind CSS | bg-[#287C2A] text-[#287C2A] |
| Java (AWT) | new Color(40,124,42); |
| Python | Color("#287C2A") |
| .NET (C#) | Color.FromArgb(255, 40,124,42); |
| Swift / iOS | UIColor(red: 0.16, green: 0.49, blue: 0.16, alpha: 1) |
| Kotlin / Android | Color.rgb(40, 124, 42) |