#284C0D#284C0D

#284C0D is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.5% C 0.099 H 135.0°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#284C0D
RGBrgb(40, 76, 13)
HSLhsl(94, 71%, 17%)
HSVhsv(94, 83%, 30%)
CMYKcmyk(47.4%, 0%, 82.9%, 70.2%)
CIE-LABlab(28.51, -25.00, 31.21)
CIE-LCHlch(28.51, 39.98, 128.69°)
OKLaboklab(37.53% -0.0699 0.0698)
OKLCHoklch(37.53% 0.099 135)
XYZxyz(3.5321, 5.6489, 1.2849)
Luminance0.0565 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C0D #310D4C
analogous
#474C0D #284C0D #0D4C12
triadic
#284C0D #0D284C #4C0D28
tetradic
#284C0D #0D474C #310D4C #4C120D
square
#284C0D #0D474C #310D4C #4C120D
split-complementary
#284C0D #120D4C #4C0D47
monochromatic
#0E1A04 #0E1A04 #284C0D #448016 #5FB51F

Accessibility & contrast

On white

9.86
#284C0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#284C0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C0D
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C0D#FFFFFF#000000##FFFFFF
##284C0D1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4502
Deuteranopia (green-blind)
#4A4214
Tritanopia (blue-blind)
#274940
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284c0d;
/* rgb */ color: rgb(40, 76, 13);
/* oklch */ color: oklch(37.5% 0.099 135.0);
Tailwind
colors: {
  custom: {
    50: '#667e51',
    500: '#284c0d',
    950: '#000000',
  },
}
SCSS
$custom: #284c0d;
$custom-light: #667e51;
$custom-dark: #000000;
JSON
{
  "hex": "#284c0d",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 13
  },
  "hsl": {
    "h": 94.286,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37534,
    "c": 0.09873,
    "h": 135
  },
  "luminance": 0.05649
}

Semantic roles & 50–950 ramp

primary
#284C0D
secondary
#612E87
accent
#3AEEA1
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284C0D

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

Preview Lab → · Contrast checker → · Palette generator →

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