#284912#284912

#284912 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.7% C 0.091 H 135.3°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#284912
RGBrgb(40, 73, 18)
HSLhsl(96, 60%, 18%)
HSVhsv(96, 75%, 29%)
CMYKcmyk(45.2%, 0%, 75.3%, 71.4%)
CIE-LABlab(27.46, -23.13, 27.97)
CIE-LCHlch(27.46, 36.29, 129.59°)
OKLaboklab(36.69% -0.0644 0.0638)
OKLCHoklch(36.69% 0.091 135.3)
XYZxyz(3.3667, 5.2597, 1.4100)
Luminance0.0526 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284912 #331249
analogous
#434912 #284912 #124917
triadic
#284912 #122849 #491228
tetradic
#284912 #124349 #331249 #491712
square
#284912 #124349 #331249 #491712
split-complementary
#284912 #171249 #491243
monochromatic
#0D1906 #0D1906 #284912 #437A1E #5EAB2A

Accessibility & contrast

On white

10.23
#284912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#284912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284912
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284912#FFFFFF#000000##FFFFFF
##2849121.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C430A
Deuteranopia (green-blind)
#474017
Tritanopia (blue-blind)
#27463E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #284912;
/* rgb */ color: rgb(40, 73, 18);
/* oklch */ color: oklch(36.7% 0.091 135.3);
Tailwind
colors: {
  custom: {
    50: '#657c53',
    500: '#284912',
    950: '#000000',
  },
}
SCSS
$custom: #284912;
$custom-light: #657c53;
$custom-dark: #000000;
JSON
{
  "hex": "#284912",
  "rgb": {
    "r": 40,
    "g": 73,
    "b": 18
  },
  "hsl": {
    "h": 96,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.3669,
    "c": 0.09067,
    "h": 135.3
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

primary
#284912
secondary
#633582
accent
#44E4A4
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #284912

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

Preview Lab → · Contrast checker → · Palette generator →

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