#285212#285212

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

Color values

HEX#285212
RGBrgb(40, 82, 18)
HSLhsl(99, 64%, 20%)
HSVhsv(99, 78%, 32%)
CMYKcmyk(51.2%, 0%, 78%, 67.8%)
CIE-LABlab(30.71, -27.40, 31.33)
CIE-LCHlch(30.71, 41.62, 131.17°)
OKLaboklab(39.35% -0.076 0.0708)
OKLCHoklch(39.35% 0.104 137)
XYZxyz(4.0014, 6.5291, 1.6215)
Luminance0.0653 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285212 #3C1252
analogous
#485212 #285212 #12521C
triadic
#285212 #122852 #521228
tetradic
#285212 #124852 #3C1252 #521C12
square
#285212 #124852 #3C1252 #521C12
split-complementary
#285212 #1C1252 #521248
monochromatic
#0C1906 #102007 #285212 #40841D #59B628

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##285212#FFFFFF#000000##FFFFFF
##2852121.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)
#554A07
Deuteranopia (green-blind)
#4F4718
Tritanopia (blue-blind)
#264F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #285212;
/* rgb */ color: rgb(40, 82, 18);
/* oklch */ color: oklch(39.4% 0.104 137.0);
Tailwind
colors: {
  custom: {
    50: '#678354',
    500: '#285212',
    950: '#000000',
  },
}
SCSS
$custom: #285212;
$custom-light: #678354;
$custom-dark: #000000;
JSON
{
  "hex": "#285212",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 99.375,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39353,
    "c": 0.10387,
    "h": 137
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#285212
secondary
#6D358B
accent
#41E7AE
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #285212

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

Preview Lab → · Contrast checker → · Palette generator →

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