#285F17#285F17

#285F17 is a dark, moderate green. Relative luminance 0.087; OKLCH L 43.2% C 0.118 H 139.4°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#285F17
RGBrgb(40, 95, 23)
HSLhsl(106, 61%, 23%)
HSVhsv(106, 76%, 37%)
CMYKcmyk(57.9%, 0%, 75.8%, 62.7%)
CIE-LABlab(35.39, -32.67, 33.98)
CIE-LCHlch(35.39, 47.14, 133.88°)
OKLaboklab(43.22% -0.0899 0.0772)
OKLCHoklch(43.22% 0.118 139.4)
XYZxyz(5.1217, 8.6970, 2.2192)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285F17 #4E175F
analogous
#4C5F17 #285F17 #175F2A
triadic
#285F17 #17285F #5F1728
tetradic
#285F17 #174C5F #4E175F #5F2A17
square
#285F17 #174C5F #4E175F #5F2A17
split-complementary
#285F17 #2A175F #5F174C
monochromatic
#0A1906 #132E0B #285F17 #3D9023 #51C22F

Accessibility & contrast

On white

7.67
#285F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#285F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285F17
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285F17#FFFFFF#000000##FFFFFF
##285F171.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62560B
Deuteranopia (green-blind)
#5B511E
Tritanopia (blue-blind)
#225C51
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #285f17;
/* rgb */ color: rgb(40, 95, 23);
/* oklch */ color: oklch(43.2% 0.118 139.4);
Tailwind
colors: {
  custom: {
    50: '#698d59',
    500: '#285f17',
    950: '#000000',
  },
}
SCSS
$custom: #285f17;
$custom-light: #698d59;
$custom-dark: #000000;
JSON
{
  "hex": "#285f17",
  "rgb": {
    "r": 40,
    "g": 95,
    "b": 23
  },
  "hsl": {
    "h": 105.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.4322,
    "c": 0.11844,
    "h": 139.4
  },
  "luminance": 0.08697
}

Semantic roles & 50–950 ramp

primary
#285F17
secondary
#813C96
accent
#44E4BE
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #285F17

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

Preview Lab → · Contrast checker → · Palette generator →

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