#285211#285211

#285211 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.3% C 0.105 H 136.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#285211
RGBrgb(40, 82, 17)
HSLhsl(99, 66%, 19%)
HSVhsv(99, 79%, 32%)
CMYKcmyk(51.2%, 0%, 79.3%, 67.8%)
CIE-LABlab(30.70, -27.48, 31.75)
CIE-LCHlch(30.70, 41.99, 130.88°)
OKLaboklab(39.34% -0.0763 0.0716)
OKLCHoklch(39.34% 0.105 136.8)
XYZxyz(3.9934, 6.5259, 1.5794)
Luminance0.0653 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285211 #3B1152
analogous
#495211 #285211 #11521A
triadic
#285211 #112852 #521128
tetradic
#285211 #114952 #3B1152 #521A11
square
#285211 #114952 #3B1152 #521A11
split-complementary
#285211 #1A1152 #521149
monochromatic
#0C1905 #0F1F06 #285211 #41851C #59B726

Accessibility & contrast

On white

9.11
#285211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #285211
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285211#FFFFFF#000000##FFFFFF
##2852111.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A06
Deuteranopia (green-blind)
#4F4717
Tritanopia (blue-blind)
#264F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #285211;
/* rgb */ color: rgb(40, 82, 17);
/* oklch */ color: oklch(39.3% 0.105 136.8);
Tailwind
colors: {
  custom: {
    50: '#678354',
    500: '#285211',
    950: '#000000',
  },
}
SCSS
$custom: #285211;
$custom-light: #678354;
$custom-dark: #000000;
JSON
{
  "hex": "#285211",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 98.769,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39344,
    "c": 0.10459,
    "h": 136.8
  },
  "luminance": 0.06526
}

Semantic roles & 50–950 ramp

primary
#285211
secondary
#6C348B
accent
#3FE9AD
background
#F6F8F5
surface
#EBEFE8
border
#C6CAC4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #285211

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

Preview Lab → · Contrast checker → · Palette generator →

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