#286F31#286F31

#286F31 is a mid, moderate green. Relative luminance 0.120; OKLCH L 48.2% C 0.119 H 145.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#286F31
RGBrgb(40, 111, 49)
HSLhsl(128, 47%, 30%)
HSVhsv(128, 64%, 44%)
CMYKcmyk(64%, 0%, 55.9%, 56.5%)
CIE-LABlab(41.28, -36.19, 27.84)
CIE-LCHlch(41.28, 45.66, 142.43°)
OKLaboklab(48.16% -0.0979 0.0668)
OKLCHoklch(48.16% 0.119 145.7)
XYZxyz(7.1134, 12.0411, 4.8544)
Luminance0.1204 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286F31 #6F2866
analogous
#426F28 #286F31 #286F55
triadic
#286F31 #31286F #6F3128
tetradic
#286F31 #28426F #6F2866 #6F5528
square
#286F31 #28426F #6F2866 #6F5528
split-complementary
#286F31 #55286F #6F2842
monochromatic
#08160A #18421D #286F31 #389C45 #51C05F

Accessibility & contrast

On white

6.16
#286F31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#286F31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #286F31
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286F31#FFFFFF#000000##FFFFFF
##286F311.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#71652B
Deuteranopia (green-blind)
#685F36
Tritanopia (blue-blind)
#186C61
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #286f31;
/* rgb */ color: rgb(40, 111, 49);
/* oklch */ color: oklch(48.2% 0.119 145.7);
Tailwind
colors: {
  custom: {
    50: '#6b996b',
    500: '#286f31',
    950: '#000000',
  },
}
SCSS
$custom: #286f31;
$custom-light: #6b996b;
$custom-dark: #000000;
JSON
{
  "hex": "#286f31",
  "rgb": {
    "r": 40,
    "g": 111,
    "b": 49
  },
  "hsl": {
    "h": 127.606,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.48163,
    "c": 0.11855,
    "h": 145.7
  },
  "luminance": 0.12042
}

Semantic roles & 50–950 ramp

primary
#286F31
secondary
#A15197
accent
#51C6D7
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #286F31

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

Preview Lab → · Contrast checker → · Palette generator →

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