#285B17#285B17

#285B17 is a dark, moderate green. Relative luminance 0.080; OKLCH L 42.0% C 0.113 H 139.0°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#285B17
RGBrgb(40, 91, 23)
HSLhsl(105, 60%, 22%)
HSVhsv(105, 75%, 36%)
CMYKcmyk(56%, 0%, 74.7%, 64.3%)
CIE-LABlab(33.97, -30.96, 32.50)
CIE-LCHlch(33.97, 44.89, 133.61°)
OKLaboklab(42.05% -0.0852 0.0741)
OKLCHoklch(42.05% 0.113 139)
XYZxyz(4.7706, 7.9948, 2.1022)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285B17 #4A175B
analogous
#4A5B17 #285B17 #175B28
triadic
#285B17 #17285B #5B1728
tetradic
#285B17 #174A5B #4A175B #5B2817
square
#285B17 #174A5B #4A175B #5B2817
split-complementary
#285B17 #28175B #5B174A
monochromatic
#0B1806 #132A0B #285B17 #3D8C23 #53BD30

Accessibility & contrast

On white

8.08
#285B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#285B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285B17
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285B17#FFFFFF#000000##FFFFFF
##285B171.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E530D
Deuteranopia (green-blind)
#574E1D
Tritanopia (blue-blind)
#23584D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #285b17;
/* rgb */ color: rgb(40, 91, 23);
/* oklch */ color: oklch(42.0% 0.113 139.0);
Tailwind
colors: {
  custom: {
    50: '#688a58',
    500: '#285b17',
    950: '#000000',
  },
}
SCSS
$custom: #285b17;
$custom-light: #688a58;
$custom-dark: #000000;
JSON
{
  "hex": "#285b17",
  "rgb": {
    "r": 40,
    "g": 91,
    "b": 23
  },
  "hsl": {
    "h": 105,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42048,
    "c": 0.11292,
    "h": 139
  },
  "luminance": 0.07995
}

Semantic roles & 50–950 ramp

primary
#285B17
secondary
#7C3C92
accent
#45E3BB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C03
muted
#7A7D78

Preview Lab

Preview with #285B17

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

Preview Lab → · Contrast checker → · Palette generator →

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