#284E12#284E12

#284E12 is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.2% C 0.098 H 136.3°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#284E12
RGBrgb(40, 78, 18)
HSLhsl(98, 63%, 19%)
HSVhsv(98, 77%, 31%)
CMYKcmyk(48.7%, 0%, 76.9%, 69.4%)
CIE-LABlab(29.27, -25.54, 29.85)
CIE-LCHlch(29.27, 39.29, 130.55°)
OKLaboklab(38.17% -0.0709 0.0678)
OKLCHoklch(38.17% 0.098 136.3)
XYZxyz(3.7085, 5.9433, 1.5239)
Luminance0.0594 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E12 #38124E
analogous
#464E12 #284E12 #124E1A
triadic
#284E12 #12284E #4E1228
tetradic
#284E12 #12464E #38124E #4E1A12
square
#284E12 #12464E #38124E #4E1A12
split-complementary
#284E12 #1A124E #4E1246
monochromatic
#0D1906 #0F1C07 #284E12 #42801D #5BB129

Accessibility & contrast

On white

9.59
#284E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#284E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E12
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E12#FFFFFF#000000##FFFFFF
##284E121.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514709
Deuteranopia (green-blind)
#4C4418
Tritanopia (blue-blind)
#264B42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #284e12;
/* rgb */ color: rgb(40, 78, 18);
/* oklch */ color: oklch(38.2% 0.098 136.3);
Tailwind
colors: {
  custom: {
    50: '#668054',
    500: '#284e12',
    950: '#000000',
  },
}
SCSS
$custom: #284e12;
$custom-light: #668054;
$custom-dark: #000000;
JSON
{
  "hex": "#284e12",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 98,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.3817,
    "c": 0.09809,
    "h": 136.3
  },
  "luminance": 0.05944
}

Semantic roles & 50–950 ramp

primary
#284E12
secondary
#693587
accent
#42E6AA
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #284E12

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

Preview Lab → · Contrast checker → · Palette generator →

#284E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva