#284F11#284F11

#284F11 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.5% C 0.100 H 136.3°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#284F11
RGBrgb(40, 79, 17)
HSLhsl(98, 65%, 19%)
HSVhsv(98, 78%, 31%)
CMYKcmyk(49.4%, 0%, 78.5%, 69%)
CIE-LABlab(29.62, -26.10, 30.65)
CIE-LCHlch(29.62, 40.26, 130.41°)
OKLaboklab(38.46% -0.0725 0.0693)
OKLCHoklch(38.46% 0.1 136.3)
XYZxyz(3.7721, 6.0833, 1.5056)
Luminance0.0608 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F11 #38114F
analogous
#474F11 #284F11 #114F19
triadic
#284F11 #11284F #4F1128
tetradic
#284F11 #11474F #38114F #4F1911
square
#284F11 #11474F #38114F #4F1911
split-complementary
#284F11 #19114F #4F1147
monochromatic
#0D1905 #0F1D06 #284F11 #42811C #5BB427

Accessibility & contrast

On white

9.47
#284F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284F11
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F11#FFFFFF#000000##FFFFFF
##284F111.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284f11;
/* rgb */ color: rgb(40, 79, 17);
/* oklch */ color: oklch(38.5% 0.100 136.3);
Tailwind
colors: {
  custom: {
    50: '#668153',
    500: '#284f11',
    950: '#000000',
  },
}
SCSS
$custom: #284f11;
$custom-light: #668153;
$custom-dark: #000000;
JSON
{
  "hex": "#284f11",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 17
  },
  "hsl": {
    "h": 97.742,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38457,
    "c": 0.10029,
    "h": 136.3
  },
  "luminance": 0.06084
}

Semantic roles & 50–950 ramp

primary
#284F11
secondary
#693388
accent
#40E8A9
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #284F11

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

Preview Lab → · Contrast checker → · Palette generator →

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