#284812#284812

#284812 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.4% C 0.089 H 135.0°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#284812
RGBrgb(40, 72, 18)
HSLhsl(96, 60%, 18%)
HSVhsv(96, 75%, 28%)
CMYKcmyk(44.4%, 0%, 75%, 71.8%)
CIE-LABlab(27.10, -22.64, 27.59)
CIE-LCHlch(27.10, 35.68, 129.37°)
OKLaboklab(36.39% -0.0631 0.063)
OKLCHoklch(36.39% 0.089 135)
XYZxyz(3.3015, 5.1293, 1.3883)
Luminance0.0513 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284812 #321248
analogous
#434812 #284812 #124817
triadic
#284812 #122848 #481228
tetradic
#284812 #124348 #321248 #481712
square
#284812 #124348 #321248 #481712
split-complementary
#284812 #171248 #481243
monochromatic
#0E1806 #0E1806 #284812 #43791E #5EAA2A

Accessibility & contrast

On white

10.37
#284812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#284812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284812
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284812#FFFFFF#000000##FFFFFF
##2848121.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420A
Deuteranopia (green-blind)
#473F17
Tritanopia (blue-blind)
#27453D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #284812;
/* rgb */ color: rgb(40, 72, 18);
/* oklch */ color: oklch(36.4% 0.089 135.0);
Tailwind
colors: {
  custom: {
    50: '#657b53',
    500: '#284812',
    950: '#000000',
  },
}
SCSS
$custom: #284812;
$custom-light: #657b53;
$custom-dark: #000000;
JSON
{
  "hex": "#284812",
  "rgb": {
    "r": 40,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 95.556,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.36394,
    "c": 0.08914,
    "h": 135
  },
  "luminance": 0.0513
}

Semantic roles & 50–950 ramp

primary
#284812
secondary
#623581
accent
#45E3A3
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #284812

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

Preview Lab → · Contrast checker → · Palette generator →

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