#285218#285218

#285218 is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.4% C 0.099 H 138.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#285218
RGBrgb(40, 82, 24)
HSLhsl(103, 55%, 21%)
HSVhsv(103, 71%, 32%)
CMYKcmyk(51.2%, 0%, 70.7%, 67.8%)
CIE-LABlab(30.76, -26.82, 28.62)
CIE-LCHlch(30.76, 39.22, 133.15°)
OKLaboklab(39.41% -0.0739 0.066)
OKLCHoklch(39.41% 0.099 138.2)
XYZxyz(4.0571, 6.5514, 1.9147)
Luminance0.0655 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285218 #421852
analogous
#455218 #285218 #185225
triadic
#285218 #182852 #521828
tetradic
#285218 #184552 #421852 #522518
square
#285218 #184552 #421852 #522518
split-complementary
#285218 #251852 #521845
monochromatic
#0C1807 #11230A #285218 #3F8126 #56B134

Accessibility & contrast

On white

9.09
#285218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#285218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285218
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285218#FFFFFF#000000##FFFFFF
##2852181.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#4F471D
Tritanopia (blue-blind)
#254F46
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #285218;
/* rgb */ color: rgb(40, 82, 24);
/* oklch */ color: oklch(39.4% 0.099 138.2);
Tailwind
colors: {
  custom: {
    50: '#668358',
    500: '#285218',
    950: '#000000',
  },
}
SCSS
$custom: #285218;
$custom-light: #668358;
$custom-dark: #000000;
JSON
{
  "hex": "#285218",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 103.448,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.39413,
    "c": 0.09913,
    "h": 138.2
  },
  "luminance": 0.06552
}

Semantic roles & 50–950 ramp

primary
#285218
secondary
#743D89
accent
#4ADEB5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #285218

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

Preview Lab → · Contrast checker → · Palette generator →

#285218 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva