#284F17#284F17

#284F17 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.5% C 0.095 H 137.6°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#284F17
RGBrgb(40, 79, 23)
HSLhsl(102, 55%, 20%)
HSVhsv(102, 71%, 31%)
CMYKcmyk(49.4%, 0%, 70.9%, 69%)
CIE-LABlab(29.68, -25.52, 27.92)
CIE-LCHlch(29.68, 37.83, 132.43°)
OKLaboklab(38.52% -0.0705 0.0644)
OKLCHoklch(38.52% 0.095 137.6)
XYZxyz(3.8256, 6.1047, 1.7872)
Luminance0.0611 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F17 #3E174F
analogous
#444F17 #284F17 #174F22
triadic
#284F17 #17284F #4F1728
tetradic
#284F17 #17444F #3E174F #4F2217
square
#284F17 #17444F #3E174F #4F2217
split-complementary
#284F17 #22174F #4F1744
monochromatic
#0C1807 #102009 #284F17 #407E25 #58AE33

Accessibility & contrast

On white

9.46
#284F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284F17
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F17#FFFFFF#000000##FFFFFF
##284F171.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284f17;
/* rgb */ color: rgb(40, 79, 23);
/* oklch */ color: oklch(38.5% 0.095 137.6);
Tailwind
colors: {
  custom: {
    50: '#668157',
    500: '#284f17',
    950: '#000000',
  },
}
SCSS
$custom: #284f17;
$custom-light: #668157;
$custom-dark: #000000;
JSON
{
  "hex": "#284f17",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 23
  },
  "hsl": {
    "h": 101.786,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.38518,
    "c": 0.09549,
    "h": 137.6
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#284F17
secondary
#703C86
accent
#4ADEB1
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #284F17

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

Preview Lab → · Contrast checker → · Palette generator →

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