#286F2F#286F2F

#286F2F is a mid, vivid green. Relative luminance 0.120; OKLCH L 48.1% C 0.120 H 145.1°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#286F2F
RGBrgb(40, 111, 47)
HSLhsl(126, 47%, 30%)
HSVhsv(126, 64%, 44%)
CMYKcmyk(64%, 0%, 57.7%, 56.5%)
CIE-LABlab(41.26, -36.49, 28.87)
CIE-LCHlch(41.26, 46.53, 141.65°)
OKLaboklab(48.13% -0.0988 0.0689)
OKLCHoklch(48.13% 0.12 145.1)
XYZxyz(7.0722, 12.0246, 4.6370)
Luminance0.1202 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286F2F #6F2868
analogous
#456F28 #286F2F #286F52
triadic
#286F2F #2F286F #6F2F28
tetradic
#286F2F #28456F #6F2868 #6F5228
square
#286F2F #28456F #6F2868 #6F5228
split-complementary
#286F2F #52286F #6F2845
monochromatic
#08160A #18421C #286F2F #389C42 #51C05C

Accessibility & contrast

On white

6.17
#286F2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #286F2F
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286F2F#FFFFFF#000000##FFFFFF
##286F2F1.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716529
Deuteranopia (green-blind)
#685F34
Tritanopia (blue-blind)
#186C61
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #286f2f;
/* rgb */ color: rgb(40, 111, 47);
/* oklch */ color: oklch(48.1% 0.120 145.1);
Tailwind
colors: {
  custom: {
    50: '#6b9969',
    500: '#286f2f',
    950: '#000000',
  },
}
SCSS
$custom: #286f2f;
$custom-light: #6b9969;
$custom-dark: #000000;
JSON
{
  "hex": "#286f2f",
  "rgb": {
    "r": 40,
    "g": 111,
    "b": 47
  },
  "hsl": {
    "h": 125.915,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.48132,
    "c": 0.12047,
    "h": 145.1
  },
  "luminance": 0.12025
}

Semantic roles & 50–950 ramp

primary
#286F2F
secondary
#A15199
accent
#51C9D7
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #286F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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