#284F0F#284F0F

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

Color values

HEX#284F0F
RGBrgb(40, 79, 15)
HSLhsl(97, 68%, 18%)
HSVhsv(97, 81%, 31%)
CMYKcmyk(49.4%, 0%, 81%, 69%)
CIE-LABlab(29.61, -26.26, 31.48)
CIE-LCHlch(29.61, 40.99, 129.83°)
OKLaboklab(38.44% -0.0731 0.0707)
OKLCHoklch(38.44% 0.102 136)
XYZxyz(3.7572, 6.0773, 1.4269)
Luminance0.0608 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F0F #360F4F
analogous
#484F0F #284F0F #0F4F16
triadic
#284F0F #0F284F #4F0F28
tetradic
#284F0F #0F484F #360F4F #4F160F
square
#284F0F #0F484F #360F4F #4F160F
split-complementary
#284F0F #160F4F #4F0F48
monochromatic
#0D1A05 #0E1C05 #284F0F #428219 #5CB623

Accessibility & contrast

On white

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

On black

2.22
#284F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##284F0F#FFFFFF#000000##FFFFFF
##284F0F1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524804
Deuteranopia (green-blind)
#4D4515
Tritanopia (blue-blind)
#264C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #284f0f;
/* rgb */ color: rgb(40, 79, 15);
/* oklch */ color: oklch(38.4% 0.102 136.0);
Tailwind
colors: {
  custom: {
    50: '#668152',
    500: '#284f0f',
    950: '#000000',
  },
}
SCSS
$custom: #284f0f;
$custom-light: #668152;
$custom-dark: #000000;
JSON
{
  "hex": "#284f0f",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 15
  },
  "hsl": {
    "h": 96.563,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.3844,
    "c": 0.10169,
    "h": 136
  },
  "luminance": 0.06078
}

Semantic roles & 50–950 ramp

primary
#284F0F
secondary
#673189
accent
#3DEBA7
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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