#286F42#286F42

#286F42 is a mid, moderate green. Relative luminance 0.122; OKLCH L 48.5% C 0.101 H 152.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#286F42
RGBrgb(40, 111, 66)
HSLhsl(142, 47%, 30%)
HSVhsv(142, 64%, 44%)
CMYKcmyk(64%, 0%, 40.5%, 56.5%)
CIE-LABlab(41.55, -33.21, 18.68)
CIE-LCHlch(41.55, 38.10, 150.64°)
OKLaboklab(48.47% -0.0899 0.0466)
OKLCHoklch(48.47% 0.101 152.6)
XYZxyz(7.5423, 12.2126, 7.1130)
Luminance0.1221 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286F42 #6F2855
analogous
#316F28 #286F42 #286F66
triadic
#286F42 #42286F #6F4228
tetradic
#286F42 #28316F #6F2855 #6F6628
square
#286F42 #28316F #6F2855 #6F6628
split-complementary
#286F42 #66286F #6F2831
monochromatic
#08160D #184227 #286F42 #389C5D #51C07A

Accessibility & contrast

On white

6.10
#286F42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#286F42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #286F42
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286F42#FFFFFF#000000##FFFFFF
##286F421.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F663F
Deuteranopia (green-blind)
#665F45
Tritanopia (blue-blind)
#0F6D64
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #286f42;
/* rgb */ color: rgb(40, 111, 66);
/* oklch */ color: oklch(48.5% 0.101 152.6);
Tailwind
colors: {
  custom: {
    50: '#6a9977',
    500: '#286f42',
    950: '#000000',
  },
}
SCSS
$custom: #286f42;
$custom-light: #6a9977;
$custom-dark: #000000;
JSON
{
  "hex": "#286f42",
  "rgb": {
    "r": 40,
    "g": 111,
    "b": 66
  },
  "hsl": {
    "h": 141.972,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.48474,
    "c": 0.10123,
    "h": 152.6
  },
  "luminance": 0.12213
}

Semantic roles & 50–950 ramp

primary
#286F42
secondary
#A15184
accent
#51A6D7
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #286F42

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

Preview Lab → · Contrast checker → · Palette generator →

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