#285F20#285F20

#285F20 is a dark, moderate green. Relative luminance 0.087; OKLCH L 43.3% C 0.111 H 141.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#285F20
RGBrgb(40, 95, 32)
HSLhsl(112, 50%, 25%)
HSVhsv(112, 66%, 37%)
CMYKcmyk(57.9%, 0%, 66.3%, 62.7%)
CIE-LABlab(35.48, -31.74, 29.88)
CIE-LCHlch(35.48, 43.59, 136.73°)
OKLaboklab(43.32% -0.0867 0.0697)
OKLCHoklch(43.32% 0.111 141.2)
XYZxyz(5.2277, 8.7394, 2.7776)
Luminance0.0874 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285F20 #57205F
analogous
#485F20 #285F20 #205F38
triadic
#285F20 #20285F #5F2028
tetradic
#285F20 #20485F #57205F #5F3820
square
#285F20 #20485F #57205F #5F3820
split-complementary
#285F20 #38205F #5F2048
monochromatic
#0A1708 #153111 #285F20 #3B8D2F #4FBB3F

Accessibility & contrast

On white

7.64
#285F20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#285F20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285F20
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285F20#FFFFFF#000000##FFFFFF
##285F201.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615619
Deuteranopia (green-blind)
#5A5225
Tritanopia (blue-blind)
#215C52
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #285f20;
/* rgb */ color: rgb(40, 95, 32);
/* oklch */ color: oklch(43.3% 0.111 141.2);
Tailwind
colors: {
  custom: {
    50: '#688d5e',
    500: '#285f20',
    950: '#000000',
  },
}
SCSS
$custom: #285f20;
$custom-light: #688d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#285f20",
  "rgb": {
    "r": 40,
    "g": 95,
    "b": 32
  },
  "hsl": {
    "h": 112.381,
    "s": 49.606,
    "l": 24.902
  },
  "oklch": {
    "l": 0.43315,
    "c": 0.11124,
    "h": 141.2
  },
  "luminance": 0.0874
}

Semantic roles & 50–950 ramp

primary
#285F20
secondary
#8A4793
accent
#4FD9C8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C04
muted
#7A7D79

Preview Lab

Preview with #285F20

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

Preview Lab → · Contrast checker → · Palette generator →

#285F20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva