#284E0D#284E0D

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

Color values

HEX#284E0D
RGBrgb(40, 78, 13)
HSLhsl(95, 71%, 18%)
HSVhsv(95, 83%, 31%)
CMYKcmyk(48.7%, 0%, 83.3%, 69.4%)
CIE-LABlab(29.23, -25.94, 31.91)
CIE-LCHlch(29.23, 41.12, 129.11°)
OKLaboklab(38.13% -0.0724 0.0712)
OKLCHoklch(38.13% 0.102 135.5)
XYZxyz(3.6720, 5.9287, 1.3316)
Luminance0.0593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E0D #330D4E
analogous
#484E0D #284E0D #0D4E12
triadic
#284E0D #0D284E #4E0D28
tetradic
#284E0D #0D484E #330D4E #4E120D
square
#284E0D #0D484E #330D4E #4E120D
split-complementary
#284E0D #120D4E #4E0D48
monochromatic
#0D1A04 #0D1A04 #284E0D #438216 #5EB71E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##284E0D#FFFFFF#000000##FFFFFF
##284E0D1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284e0d;
/* rgb */ color: rgb(40, 78, 13);
/* oklch */ color: oklch(38.1% 0.102 135.5);
Tailwind
colors: {
  custom: {
    50: '#668051',
    500: '#284e0d',
    950: '#000000',
  },
}
SCSS
$custom: #284e0d;
$custom-light: #668051;
$custom-dark: #000000;
JSON
{
  "hex": "#284e0d",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 13
  },
  "hsl": {
    "h": 95.077,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.38128,
    "c": 0.10158,
    "h": 135.5
  },
  "luminance": 0.05929
}

Semantic roles & 50–950 ramp

primary
#284E0D
secondary
#632E89
accent
#3AEEA3
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284E0D

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

Preview Lab → · Contrast checker → · Palette generator →

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