#284C17#284C17

#284C17 is a dark, moderate green. Relative luminance 0.057; OKLCH L 37.6% C 0.091 H 137.1°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#284C17
RGBrgb(40, 76, 23)
HSLhsl(101, 54%, 19%)
HSVhsv(101, 70%, 30%)
CMYKcmyk(47.4%, 0%, 69.7%, 70.2%)
CIE-LABlab(28.59, -24.08, 26.74)
CIE-LCHlch(28.59, 35.98, 132.01°)
OKLaboklab(37.63% -0.0666 0.0619)
OKLCHoklch(37.63% 0.091 137.1)
XYZxyz(3.6141, 5.6816, 1.7167)
Luminance0.0568 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C17 #3B174C
analogous
#434C17 #284C17 #174C21
triadic
#284C17 #17284C #4C1728
tetradic
#284C17 #17434C #3B174C #4C2117
square
#284C17 #17434C #3B174C #4C2117
split-complementary
#284C17 #21174C #4C1743
monochromatic
#0C1707 #0F1D09 #284C17 #417B25 #59AA33

Accessibility & contrast

On white

9.83
#284C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#284C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C17
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C17#FFFFFF#000000##FFFFFF
##284C171.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4511
Deuteranopia (green-blind)
#4A421B
Tritanopia (blue-blind)
#264941
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284c17;
/* rgb */ color: rgb(40, 76, 23);
/* oklch */ color: oklch(37.6% 0.091 137.1);
Tailwind
colors: {
  custom: {
    50: '#657e57',
    500: '#284c17',
    950: '#000000',
  },
}
SCSS
$custom: #284c17;
$custom-light: #657e57;
$custom-dark: #000000;
JSON
{
  "hex": "#284c17",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 23
  },
  "hsl": {
    "h": 100.755,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.37632,
    "c": 0.09092,
    "h": 137.1
  },
  "luminance": 0.05682
}

Semantic roles & 50–950 ramp

primary
#284C17
secondary
#6C3C83
accent
#4BDDAE
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #284C17

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

Preview Lab → · Contrast checker → · Palette generator →

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