#286D2F#286D2F

#286D2F is a mid, moderate green. Relative luminance 0.116; OKLCH L 47.6% C 0.118 H 145.2°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#286D2F
RGBrgb(40, 109, 47)
HSLhsl(126, 46%, 29%)
HSVhsv(126, 63%, 43%)
CMYKcmyk(63.3%, 0%, 56.9%, 57.3%)
CIE-LABlab(40.56, -35.66, 28.04)
CIE-LCHlch(40.56, 45.36, 141.82°)
OKLaboklab(47.56% -0.0966 0.0671)
OKLCHoklch(47.56% 0.118 145.2)
XYZxyz(6.8564, 11.5930, 4.5651)
Luminance0.1159 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286D2F #6D2866
analogous
#446D28 #286D2F #286D52
triadic
#286D2F #2F286D #6D2F28
tetradic
#286D2F #28446D #6D2866 #6D5228
square
#286D2F #28446D #6D2866 #6D5228
split-complementary
#286D2F #52286D #6D2844
monochromatic
#08160A #18401C #286D2F #389A42 #50BF5C

Accessibility & contrast

On white

6.33
#286D2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#286D2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #286D2F
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286D2F#FFFFFF#000000##FFFFFF
##286D2F1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6329
Deuteranopia (green-blind)
#665D34
Tritanopia (blue-blind)
#196A5F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #286d2f;
/* rgb */ color: rgb(40, 109, 47);
/* oklch */ color: oklch(47.6% 0.118 145.2);
Tailwind
colors: {
  custom: {
    50: '#6a9769',
    500: '#286d2f',
    950: '#000000',
  },
}
SCSS
$custom: #286d2f;
$custom-light: #6a9769;
$custom-dark: #000000;
JSON
{
  "hex": "#286d2f",
  "rgb": {
    "r": 40,
    "g": 109,
    "b": 47
  },
  "hsl": {
    "h": 126.087,
    "s": 46.309,
    "l": 29.216
  },
  "oklch": {
    "l": 0.47561,
    "c": 0.11758,
    "h": 145.2
  },
  "luminance": 0.11594
}

Semantic roles & 50–950 ramp

primary
#286D2F
secondary
#9F5198
accent
#52C9D6
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070D06
muted
#7A7E7A

Preview Lab

Preview with #286D2F

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

Preview Lab → · Contrast checker → · Palette generator →

#286D2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva