#284917#284917

#284917 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.7% C 0.086 H 136.5°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#284917
RGBrgb(40, 73, 23)
HSLhsl(100, 52%, 19%)
HSVhsv(100, 68%, 29%)
CMYKcmyk(45.2%, 0%, 68.5%, 71.4%)
CIE-LABlab(27.51, -22.61, 25.53)
CIE-LCHlch(27.51, 34.11, 131.52°)
OKLaboklab(36.75% -0.0626 0.0594)
OKLCHoklch(36.75% 0.086 136.5)
XYZxyz(3.4122, 5.2779, 1.6494)
Luminance0.0528 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284917 #381749
analogous
#414917 #284917 #17491F
triadic
#284917 #172849 #491728
tetradic
#284917 #174149 #381749 #491F17
square
#284917 #174149 #381749 #491F17
split-complementary
#284917 #1F1749 #491741
monochromatic
#0D1707 #0F1A08 #284917 #427826 #5BA634

Accessibility & contrast

On white

10.22
#284917 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#284917 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284917
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284917#FFFFFF#000000##FFFFFF
##2849171.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4311
Deuteranopia (green-blind)
#47401B
Tritanopia (blue-blind)
#27463E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #284917;
/* rgb */ color: rgb(40, 73, 23);
/* oklch */ color: oklch(36.7% 0.086 136.5);
Tailwind
colors: {
  custom: {
    50: '#657c56',
    500: '#284917',
    950: '#000000',
  },
}
SCSS
$custom: #284917;
$custom-light: #657c56;
$custom-dark: #000000;
JSON
{
  "hex": "#284917",
  "rgb": {
    "r": 40,
    "g": 73,
    "b": 23
  },
  "hsl": {
    "h": 99.6,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.36747,
    "c": 0.08624,
    "h": 136.5
  },
  "luminance": 0.05278
}

Semantic roles & 50–950 ramp

primary
#284917
secondary
#693C80
accent
#4CDCAB
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #284917

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

Preview Lab → · Contrast checker → · Palette generator →

#284917 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva