#284F0E#284F0E

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

Color values

HEX#284F0E
RGBrgb(40, 79, 14)
HSLhsl(96, 70%, 18%)
HSVhsv(96, 82%, 31%)
CMYKcmyk(49.4%, 0%, 82.3%, 69%)
CIE-LABlab(29.60, -26.33, 31.87)
CIE-LCHlch(29.60, 41.34, 129.56°)
OKLaboklab(38.43% -0.0734 0.0713)
OKLCHoklch(38.43% 0.102 135.8)
XYZxyz(3.7502, 6.0746, 1.3903)
Luminance0.0607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F0E #350E4F
analogous
#484F0E #284F0E #0E4F14
triadic
#284F0E #0E284F #4F0E28
tetradic
#284F0E #0E484F #350E4F #4F140E
square
#284F0E #0E484F #350E4F #4F140E
split-complementary
#284F0E #140E4F #4F0E48
monochromatic
#0D1A05 #0E1B05 #284F0E #428317 #5DB720

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##284F0E#FFFFFF#000000##FFFFFF
##284F0E1.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)
#524803
Deuteranopia (green-blind)
#4D4515
Tritanopia (blue-blind)
#274C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #284f0e;
/* rgb */ color: rgb(40, 79, 14);
/* oklch */ color: oklch(38.4% 0.102 135.8);
Tailwind
colors: {
  custom: {
    50: '#668152',
    500: '#284f0e',
    950: '#000000',
  },
}
SCSS
$custom: #284f0e;
$custom-light: #668152;
$custom-dark: #000000;
JSON
{
  "hex": "#284f0e",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 14
  },
  "hsl": {
    "h": 96,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38432,
    "c": 0.10235,
    "h": 135.8
  },
  "luminance": 0.06075
}

Semantic roles & 50–950 ramp

primary
#284F0E
secondary
#652F8A
accent
#3BEDA6
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284F0E

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

Preview Lab → · Contrast checker → · Palette generator →

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