#284C0B#284C0B

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

Color values

HEX#284C0B
RGBrgb(40, 76, 11)
HSLhsl(93, 75%, 17%)
HSVhsv(93, 86%, 30%)
CMYKcmyk(47.4%, 0%, 85.5%, 70.2%)
CIE-LABlab(28.50, -25.13, 31.96)
CIE-LCHlch(28.50, 40.66, 128.18°)
OKLaboklab(37.52% -0.0704 0.071)
OKLCHoklch(37.52% 0.1 134.8)
XYZxyz(3.5198, 5.6440, 1.2205)
Luminance0.0564 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C0B #2F0B4C
analogous
#494C0B #284C0B #0B4C0F
triadic
#284C0B #0B284C #4C0B28
tetradic
#284C0B #0B494C #2F0B4C #4C0F0B
square
#284C0B #0B494C #2F0B4C #4C0F0B
split-complementary
#284C0B #0F0B4C #4C0B49
monochromatic
#0E1B04 #0E1B04 #284C0B #448113 #60B71A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##284C0B#FFFFFF#000000##FFFFFF
##284C0B1.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)
#4F4500
Deuteranopia (green-blind)
#4A4212
Tritanopia (blue-blind)
#274940
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284c0b;
/* rgb */ color: rgb(40, 76, 11);
/* oklch */ color: oklch(37.5% 0.100 134.8);
Tailwind
colors: {
  custom: {
    50: '#667e50',
    500: '#284c0b',
    950: '#000000',
  },
}
SCSS
$custom: #284c0b;
$custom-light: #667e50;
$custom-dark: #000000;
JSON
{
  "hex": "#284c0b",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 11
  },
  "hsl": {
    "h": 93.231,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.3752,
    "c": 0.09998,
    "h": 134.8
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#284C0B
secondary
#5E2B88
accent
#36F19E
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284C0B

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

Preview Lab → · Contrast checker → · Palette generator →

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