#284A0B#284A0B

#284A0B is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 36.9% C 0.097 H 134.3°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#284A0B
RGBrgb(40, 74, 11)
HSLhsl(92, 74%, 17%)
HSVhsv(92, 85%, 29%)
CMYKcmyk(45.9%, 0%, 85.1%, 71%)
CIE-LABlab(27.77, -24.18, 31.27)
CIE-LCHlch(27.77, 39.52, 127.71°)
OKLaboklab(36.93% -0.0678 0.0696)
OKLCHoklch(36.93% 0.097 134.3)
XYZxyz(3.3842, 5.3727, 1.1753)
Luminance0.0537 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A0B #2D0B4A
analogous
#484A0B #284A0B #0B4A0E
triadic
#284A0B #0B284A #4A0B28
tetradic
#284A0B #0B484A #2D0B4A #4A0E0B
square
#284A0B #0B484A #2D0B4A #4A0E0B
split-complementary
#284A0B #0E0B4A #4A0B48
monochromatic
#0E1B04 #0E1B04 #284A0B #457F13 #62B51B

Accessibility & contrast

On white

10.12
#284A0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#284A0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A0B
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A0B#FFFFFF#000000##FFFFFF
##284A0B1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4300
Deuteranopia (green-blind)
#494112
Tritanopia (blue-blind)
#28473E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #284a0b;
/* rgb */ color: rgb(40, 74, 11);
/* oklch */ color: oklch(36.9% 0.097 134.3);
Tailwind
colors: {
  custom: {
    50: '#667d50',
    500: '#284a0b',
    950: '#000000',
  },
}
SCSS
$custom: #284a0b;
$custom-light: #667d50;
$custom-dark: #000000;
JSON
{
  "hex": "#284a0b",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 11
  },
  "hsl": {
    "h": 92.381,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.36926,
    "c": 0.09714,
    "h": 134.3
  },
  "luminance": 0.05373
}

Semantic roles & 50–950 ramp

primary
#284A0B
secondary
#5C2B86
accent
#37F19B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #284A0B

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

Preview Lab → · Contrast checker → · Palette generator →

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