#285C18#285C18

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

Color values

HEX#285C18
RGBrgb(40, 92, 24)
HSLhsl(106, 59%, 23%)
HSVhsv(106, 74%, 36%)
CMYKcmyk(56.5%, 0%, 73.9%, 63.9%)
CIE-LABlab(34.34, -31.30, 32.44)
CIE-LCHlch(34.34, 45.08, 133.97°)
OKLaboklab(42.35% -0.0861 0.0741)
OKLCHoklch(42.35% 0.114 139.3)
XYZxyz(4.8669, 8.1710, 2.1847)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285C18 #4C185C
analogous
#4A5C18 #285C18 #185C2A
triadic
#285C18 #18285C #5C1828
tetradic
#285C18 #184A5C #4C185C #5C2A18
square
#285C18 #184A5C #4C185C #5C2A18
split-complementary
#285C18 #2A185C #5C184A
monochromatic
#0B1806 #132B0B #285C18 #3D8D25 #52BD31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##285C18#FFFFFF#000000##FFFFFF
##285C181.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)
#5F530E
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#23594E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #285c18;
/* rgb */ color: rgb(40, 92, 24);
/* oklch */ color: oklch(42.4% 0.114 139.3);
Tailwind
colors: {
  custom: {
    50: '#688b59',
    500: '#285c18',
    950: '#000000',
  },
}
SCSS
$custom: #285c18;
$custom-light: #688b59;
$custom-dark: #000000;
JSON
{
  "hex": "#285c18",
  "rgb": {
    "r": 40,
    "g": 92,
    "b": 24
  },
  "hsl": {
    "h": 105.882,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42351,
    "c": 0.11356,
    "h": 139.3
  },
  "luminance": 0.08171
}

Semantic roles & 50–950 ramp

primary
#285C18
secondary
#7E3D93
accent
#46E2BD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C04
muted
#7A7D79

Preview Lab

Preview with #285C18

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

Preview Lab → · Contrast checker → · Palette generator →

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