#284918#284918

#284918 is a dark, moderate green. Relative luminance 0.053; OKLCH L 36.8% C 0.085 H 136.8°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#284918
RGBrgb(40, 73, 24)
HSLhsl(100, 51%, 19%)
HSVhsv(100, 67%, 29%)
CMYKcmyk(45.2%, 0%, 67.1%, 71.4%)
CIE-LABlab(27.52, -22.49, 25.02)
CIE-LCHlch(27.52, 33.65, 131.95°)
OKLaboklab(36.76% -0.0622 0.0584)
OKLCHoklch(36.76% 0.085 136.8)
XYZxyz(3.4224, 5.2820, 1.7032)
Luminance0.0528 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284918 #391849
analogous
#414918 #284918 #184921
triadic
#284918 #182849 #491828
tetradic
#284918 #184149 #391849 #492118
square
#284918 #184149 #391849 #492118
split-complementary
#284918 #211849 #491841
monochromatic
#0D1708 #0F1B09 #284918 #417727 #5AA536

Accessibility & contrast

On white

10.21
#284918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284918
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284918#FFFFFF#000000##FFFFFF
##2849181.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4313
Deuteranopia (green-blind)
#47401C
Tritanopia (blue-blind)
#27463F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #284918;
/* rgb */ color: rgb(40, 73, 24);
/* oklch */ color: oklch(36.8% 0.085 136.8);
Tailwind
colors: {
  custom: {
    50: '#657c57',
    500: '#284918',
    950: '#000000',
  },
}
SCSS
$custom: #284918;
$custom-light: #657c57;
$custom-dark: #000000;
JSON
{
  "hex": "#284918",
  "rgb": {
    "r": 40,
    "g": 73,
    "b": 24
  },
  "hsl": {
    "h": 100.408,
    "s": 50.515,
    "l": 19.02
  },
  "oklch": {
    "l": 0.3676,
    "c": 0.08528,
    "h": 136.8
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#284918
secondary
#6A3D80
accent
#4EDAAC
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #284918

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

Preview Lab → · Contrast checker → · Palette generator →

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