#286A2F#286A2F

#286A2F is a mid, moderate green. Relative luminance 0.110; OKLCH L 46.7% C 0.113 H 145.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#286A2F
RGBrgb(40, 106, 47)
HSLhsl(126, 45%, 29%)
HSVhsv(126, 62%, 42%)
CMYKcmyk(62.3%, 0%, 55.7%, 58.4%)
CIE-LABlab(39.52, -34.40, 26.78)
CIE-LCHlch(39.52, 43.60, 142.10°)
OKLaboklab(46.7% -0.0932 0.0643)
OKLCHoklch(46.7% 0.113 145.4)
XYZxyz(6.5418, 10.9638, 4.4603)
Luminance0.1096 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286A2F #6A2863
analogous
#426A28 #286A2F #286A50
triadic
#286A2F #2F286A #6A2F28
tetradic
#286A2F #28426A #6A2863 #6A5028
square
#286A2F #28426A #6A2863 #6A5028
split-complementary
#286A2F #50286A #6A2842
monochromatic
#08160A #173E1B #286A2F #399643 #50BD5B

Accessibility & contrast

On white

6.58
#286A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#286A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #286A2F
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286A2F#FFFFFF#000000##FFFFFF
##286A2F1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C612A
Deuteranopia (green-blind)
#635B33
Tritanopia (blue-blind)
#1A675D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #286a2f;
/* rgb */ color: rgb(40, 106, 47);
/* oklch */ color: oklch(46.7% 0.113 145.4);
Tailwind
colors: {
  custom: {
    50: '#6a9569',
    500: '#286a2f',
    950: '#000000',
  },
}
SCSS
$custom: #286a2f;
$custom-light: #6a9569;
$custom-dark: #000000;
JSON
{
  "hex": "#286a2f",
  "rgb": {
    "r": 40,
    "g": 106,
    "b": 47
  },
  "hsl": {
    "h": 126.364,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.46702,
    "c": 0.1132,
    "h": 145.4
  },
  "luminance": 0.10964
}

Semantic roles & 50–950 ramp

primary
#286A2F
secondary
#9D5195
accent
#53C7D5
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070D06
muted
#7A7E7A

Preview Lab

Preview with #286A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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