#285C17#285C17

#285C17 is a dark, moderate green. Relative luminance 0.082; OKLCH L 42.3% C 0.114 H 139.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#285C17
RGBrgb(40, 92, 23)
HSLhsl(105, 60%, 23%)
HSVhsv(105, 75%, 36%)
CMYKcmyk(56.5%, 0%, 75%, 63.9%)
CIE-LABlab(34.33, -31.39, 32.88)
CIE-LCHlch(34.33, 45.46, 133.68°)
OKLaboklab(42.34% -0.0864 0.0748)
OKLCHoklch(42.34% 0.114 139.1)
XYZxyz(4.8567, 8.1669, 2.1309)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285C17 #4B175C
analogous
#4B5C17 #285C17 #175C28
triadic
#285C17 #17285C #5C1728
tetradic
#285C17 #174B5C #4B175C #5C2817
square
#285C17 #174B5C #4B175C #5C2817
split-complementary
#285C17 #28175C #5C174B
monochromatic
#0B1806 #132B0B #285C17 #3D8D23 #53BE2F

Accessibility & contrast

On white

7.97
#285C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#285C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285C17
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285C17#FFFFFF#000000##FFFFFF
##285C171.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F530C
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#23594E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #285c17;
/* rgb */ color: rgb(40, 92, 23);
/* oklch */ color: oklch(42.3% 0.114 139.1);
Tailwind
colors: {
  custom: {
    50: '#688b58',
    500: '#285c17',
    950: '#000000',
  },
}
SCSS
$custom: #285c17;
$custom-light: #688b58;
$custom-dark: #000000;
JSON
{
  "hex": "#285c17",
  "rgb": {
    "r": 40,
    "g": 92,
    "b": 23
  },
  "hsl": {
    "h": 105.217,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42341,
    "c": 0.11431,
    "h": 139.1
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#285C17
secondary
#7D3C93
accent
#45E3BC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C04
muted
#7A7D79

Preview Lab

Preview with #285C17

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

Preview Lab → · Contrast checker → · Palette generator →

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