#284E0B#284E0B

#284E0B is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.1% C 0.103 H 135.2°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#284E0B
RGBrgb(40, 78, 11)
HSLhsl(94, 75%, 17%)
HSVhsv(94, 86%, 31%)
CMYKcmyk(48.7%, 0%, 85.9%, 69.4%)
CIE-LABlab(29.22, -26.07, 32.64)
CIE-LCHlch(29.22, 41.78, 128.61°)
OKLaboklab(38.11% -0.0729 0.0724)
OKLCHoklch(38.11% 0.103 135.2)
XYZxyz(3.6598, 5.9238, 1.2671)
Luminance0.0592 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E0B #310B4E
analogous
#494E0B #284E0B #0B4E10
triadic
#284E0B #0B284E #4E0B28
tetradic
#284E0B #0B494E #310B4E #4E100B
square
#284E0B #0B494E #310B4E #4E100B
split-complementary
#284E0B #100B4E #4E0B49
monochromatic
#0E1B04 #0E1B04 #284E0B #448413 #5FB91A

Accessibility & contrast

On white

9.61
#284E0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#284E0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E0B
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E0B#FFFFFF#000000##FFFFFF
##284E0B1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514700
Deuteranopia (green-blind)
#4C4412
Tritanopia (blue-blind)
#274B42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #284e0b;
/* rgb */ color: rgb(40, 78, 11);
/* oklch */ color: oklch(38.1% 0.103 135.2);
Tailwind
colors: {
  custom: {
    50: '#668050',
    500: '#284e0b',
    950: '#000000',
  },
}
SCSS
$custom: #284e0b;
$custom-light: #668050;
$custom-dark: #000000;
JSON
{
  "hex": "#284e0b",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 11
  },
  "hsl": {
    "h": 94.03,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.38113,
    "c": 0.10277,
    "h": 135.2
  },
  "luminance": 0.05924
}

Semantic roles & 50–950 ramp

primary
#284E0B
secondary
#612B8A
accent
#36F2A1
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284E0B

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

Preview Lab → · Contrast checker → · Palette generator →

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