#284E17#284E17

#284E17 is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.2% C 0.094 H 137.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#284E17
RGBrgb(40, 78, 23)
HSLhsl(101, 54%, 20%)
HSVhsv(101, 71%, 31%)
CMYKcmyk(48.7%, 0%, 70.5%, 69.4%)
CIE-LABlab(29.32, -25.05, 27.53)
CIE-LCHlch(29.32, 37.22, 132.30°)
OKLaboklab(38.22% -0.0692 0.0636)
OKLCHoklch(38.22% 0.094 137.4)
XYZxyz(3.7540, 5.9615, 1.7633)
Luminance0.0596 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E17 #3D174E
analogous
#434E17 #284E17 #174E22
triadic
#284E17 #17284E #4E1728
tetradic
#284E17 #17434E #3D174E #4E2217
square
#284E17 #17434E #3D174E #4E2217
split-complementary
#284E17 #22174E #4E1743
monochromatic
#0C1807 #101F09 #284E17 #407D25 #58AD33

Accessibility & contrast

On white

9.58
#284E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#284E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E17
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E17#FFFFFF#000000##FFFFFF
##284E171.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514710
Deuteranopia (green-blind)
#4C441C
Tritanopia (blue-blind)
#264B43
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #284e17;
/* rgb */ color: rgb(40, 78, 23);
/* oklch */ color: oklch(38.2% 0.094 137.4);
Tailwind
colors: {
  custom: {
    50: '#668057',
    500: '#284e17',
    950: '#000000',
  },
}
SCSS
$custom: #284e17;
$custom-light: #668057;
$custom-dark: #000000;
JSON
{
  "hex": "#284e17",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 23
  },
  "hsl": {
    "h": 101.455,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38223,
    "c": 0.09398,
    "h": 137.4
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#284E17
secondary
#6E3C85
accent
#4ADEB0
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #284E17

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

Preview Lab → · Contrast checker → · Palette generator →

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