#284E0A#284E0A

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

Color values

HEX#284E0A
RGBrgb(40, 78, 10)
HSLhsl(94, 77%, 17%)
HSVhsv(94, 87%, 31%)
CMYKcmyk(48.7%, 0%, 87.2%, 69.4%)
CIE-LABlab(29.21, -26.13, 32.99)
CIE-LCHlch(29.21, 42.09, 128.39°)
OKLaboklab(38.11% -0.0732 0.073)
OKLCHoklch(38.11% 0.103 135.1)
XYZxyz(3.6542, 5.9216, 1.2375)
Luminance0.0592 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E0A #300A4E
analogous
#4A4E0A #284E0A #0A4E0E
triadic
#284E0A #0A284E #4E0A28
tetradic
#284E0A #0A4A4E #300A4E #4E0E0A
square
#284E0A #0A4A4E #300A4E #4E0E0A
split-complementary
#284E0A #0E0A4E #4E0A4A
monochromatic
#0E1B03 #0E1B03 #284E0A #448411 #60BA18

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##284E0A#FFFFFF#000000##FFFFFF
##284E0A1.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: #284e0a;
/* rgb */ color: rgb(40, 78, 10);
/* oklch */ color: oklch(38.1% 0.103 135.1);
Tailwind
colors: {
  custom: {
    50: '#668050',
    500: '#284e0a',
    950: '#000000',
  },
}
SCSS
$custom: #284e0a;
$custom-light: #668050;
$custom-dark: #000000;
JSON
{
  "hex": "#284e0a",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 10
  },
  "hsl": {
    "h": 93.529,
    "s": 77.273,
    "l": 17.255
  },
  "oklch": {
    "l": 0.38107,
    "c": 0.10334,
    "h": 135.1
  },
  "luminance": 0.05922
}

Semantic roles & 50–950 ramp

primary
#284E0A
secondary
#60298B
accent
#34F49F
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284E0A

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

Preview Lab → · Contrast checker → · Palette generator →

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