#285B18#285B18

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

Color values

HEX#285B18
RGBrgb(40, 91, 24)
HSLhsl(106, 58%, 23%)
HSVhsv(106, 74%, 36%)
CMYKcmyk(56%, 0%, 73.6%, 64.3%)
CIE-LABlab(33.98, -30.87, 32.07)
CIE-LCHlch(33.98, 44.51, 133.91°)
OKLaboklab(42.06% -0.0849 0.0733)
OKLCHoklch(42.06% 0.112 139.2)
XYZxyz(4.7808, 7.9989, 2.1560)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285B18 #4B185B
analogous
#495B18 #285B18 #185B2A
triadic
#285B18 #18285B #5B1828
tetradic
#285B18 #18495B #4B185B #5B2A18
square
#285B18 #18495B #4B185B #5B2A18
split-complementary
#285B18 #2A185B #5B1849
monochromatic
#0B1806 #132B0B #285B18 #3D8B25 #53BC32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##285B18#FFFFFF#000000##FFFFFF
##285B181.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)
#5E530E
Deuteranopia (green-blind)
#574E1E
Tritanopia (blue-blind)
#23584E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #285b18;
/* rgb */ color: rgb(40, 91, 24);
/* oklch */ color: oklch(42.1% 0.112 139.2);
Tailwind
colors: {
  custom: {
    50: '#688a59',
    500: '#285b18',
    950: '#000000',
  },
}
SCSS
$custom: #285b18;
$custom-light: #688a59;
$custom-dark: #000000;
JSON
{
  "hex": "#285b18",
  "rgb": {
    "r": 40,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 105.672,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42058,
    "c": 0.11216,
    "h": 139.2
  },
  "luminance": 0.07999
}

Semantic roles & 50–950 ramp

primary
#285B18
secondary
#7D3D92
accent
#46E1BC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C04
muted
#7A7D79

Preview Lab

Preview with #285B18

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

Preview Lab → · Contrast checker → · Palette generator →

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