#285E17#285E17

#285E17 is a dark, moderate green. Relative luminance 0.085; OKLCH L 42.9% C 0.117 H 139.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#285E17
RGBrgb(40, 94, 23)
HSLhsl(106, 61%, 23%)
HSVhsv(106, 76%, 37%)
CMYKcmyk(57.4%, 0%, 75.5%, 63.1%)
CIE-LABlab(35.04, -32.25, 33.61)
CIE-LCHlch(35.04, 46.58, 133.81°)
OKLaboklab(42.93% -0.0887 0.0764)
OKLCHoklch(42.93% 0.117 139.3)
XYZxyz(5.0322, 8.5180, 2.1894)
Luminance0.0852 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285E17 #4D175E
analogous
#4B5E17 #285E17 #175E29
triadic
#285E17 #17285E #5E1728
tetradic
#285E17 #174B5E #4D175E #5E2917
square
#285E17 #174B5E #4D175E #5E2917
split-complementary
#285E17 #29175E #5E174B
monochromatic
#0A1906 #132D0B #285E17 #3D8F23 #52C02F

Accessibility & contrast

On white

7.77
#285E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#285E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285E17
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285E17#FFFFFF#000000##FFFFFF
##285E171.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550C
Deuteranopia (green-blind)
#5A511E
Tritanopia (blue-blind)
#235B50
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #285e17;
/* rgb */ color: rgb(40, 94, 23);
/* oklch */ color: oklch(42.9% 0.117 139.3);
Tailwind
colors: {
  custom: {
    50: '#688c59',
    500: '#285e17',
    950: '#000000',
  },
}
SCSS
$custom: #285e17;
$custom-light: #688c59;
$custom-dark: #000000;
JSON
{
  "hex": "#285e17",
  "rgb": {
    "r": 40,
    "g": 94,
    "b": 23
  },
  "hsl": {
    "h": 105.634,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.42927,
    "c": 0.11707,
    "h": 139.3
  },
  "luminance": 0.08518
}

Semantic roles & 50–950 ramp

primary
#285E17
secondary
#803C95
accent
#44E4BE
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #285E17

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

Preview Lab → · Contrast checker → · Palette generator →

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