#284F0D#284F0D

#284F0D is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.4% C 0.103 H 135.7°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#284F0D
RGBrgb(40, 79, 13)
HSLhsl(95, 72%, 18%)
HSVhsv(95, 84%, 31%)
CMYKcmyk(49.4%, 0%, 83.5%, 69%)
CIE-LABlab(29.59, -26.40, 32.26)
CIE-LCHlch(29.59, 41.68, 129.30°)
OKLaboklab(38.42% -0.0737 0.072)
OKLCHoklch(38.42% 0.103 135.7)
XYZxyz(3.7436, 6.0719, 1.3554)
Luminance0.0607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F0D #340D4F
analogous
#494F0D #284F0D #0D4F13
triadic
#284F0D #0D284F #4F0D28
tetradic
#284F0D #0D494F #340D4F #4F130D
square
#284F0D #0D494F #340D4F #4F130D
split-complementary
#284F0D #130D4F #4F0D49
monochromatic
#0D1A04 #0D1A04 #284F0D #438416 #5DB81E

Accessibility & contrast

On white

9.48
#284F0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#284F0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F0D
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F0D#FFFFFF#000000##FFFFFF
##284F0D1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524801
Deuteranopia (green-blind)
#4D4514
Tritanopia (blue-blind)
#274C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #284f0d;
/* rgb */ color: rgb(40, 79, 13);
/* oklch */ color: oklch(38.4% 0.103 135.7);
Tailwind
colors: {
  custom: {
    50: '#668151',
    500: '#284f0d',
    950: '#000000',
  },
}
SCSS
$custom: #284f0d;
$custom-light: #668151;
$custom-dark: #000000;
JSON
{
  "hex": "#284f0d",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 13
  },
  "hsl": {
    "h": 95.455,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.38424,
    "c": 0.10298,
    "h": 135.7
  },
  "luminance": 0.06072
}

Semantic roles & 50–950 ramp

primary
#284F0D
secondary
#642E8A
accent
#39EEA4
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284F0D

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

Preview Lab → · Contrast checker → · Palette generator →

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