#287F29#287F29

#287F29 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.147 H 143.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#287F29
RGBrgb(40, 127, 41)
HSLhsl(121, 52%, 33%)
HSVhsv(121, 69%, 50%)
CMYKcmyk(68.5%, 0%, 67.7%, 50.2%)
CIE-LABlab(46.70, -43.50, 38.05)
CIE-LCHlch(46.70, 57.79, 138.82°)
OKLaboklab(52.61% -0.1181 0.0881)
OKLCHoklch(52.61% 0.147 143.3)
XYZxyz(8.8642, 15.7890, 4.6778)
Luminance0.1579 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F29 #7F287E
analogous
#527F28 #287F29 #287F55
triadic
#287F29 #29287F #7F2928
tetradic
#287F29 #28527F #7F287E #7F5528
square
#287F29 #28527F #7F287E #7F5528
split-complementary
#287F29 #55287F #7F2852
monochromatic
#0B220B #19501A #287F29 #37AE38 #57CA59

Accessibility & contrast

On white

5.05
#287F29 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#287F29 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F29
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F29#FFFFFF#000000##FFFFFF
##287F291.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731E
Deuteranopia (green-blind)
#776C31
Tritanopia (blue-blind)
#137B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #287f29;
/* rgb */ color: rgb(40, 127, 41);
/* oklch */ color: oklch(52.6% 0.147 143.3);
Tailwind
colors: {
  custom: {
    50: '#6ea567',
    500: '#287f29',
    950: '#000000',
  },
}
SCSS
$custom: #287f29;
$custom-light: #6ea567;
$custom-dark: #000000;
JSON
{
  "hex": "#287f29",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 41
  },
  "hsl": {
    "h": 120.69,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52607,
    "c": 0.1473,
    "h": 143.3
  },
  "luminance": 0.1579
}

Semantic roles & 50–950 ramp

primary
#287F29
secondary
#AF54AE
accent
#4CDADC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287F29

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#287F29 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva