#284C18#284C18

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

Color values

HEX#284C18
RGBrgb(40, 76, 24)
HSLhsl(102, 52%, 20%)
HSVhsv(102, 68%, 30%)
CMYKcmyk(47.4%, 0%, 68.4%, 70.2%)
CIE-LABlab(28.61, -23.97, 26.24)
CIE-LCHlch(28.61, 35.54, 132.42°)
OKLaboklab(37.65% -0.0662 0.061)
OKLCHoklch(37.65% 0.09 137.3)
XYZxyz(3.6243, 5.6857, 1.7705)
Luminance0.0569 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C18 #3C184C
analogous
#424C18 #284C18 #184C22
triadic
#284C18 #18284C #4C1828
tetradic
#284C18 #18424C #3C184C #4C2218
square
#284C18 #18424C #3C184C #4C2218
split-complementary
#284C18 #22184C #4C1842
monochromatic
#0C1707 #101D09 #284C18 #407B27 #59A935

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##284C18#FFFFFF#000000##FFFFFF
##284C181.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)
#4F4512
Deuteranopia (green-blind)
#4A421C
Tritanopia (blue-blind)
#264941
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284c18;
/* rgb */ color: rgb(40, 76, 24);
/* oklch */ color: oklch(37.6% 0.090 137.3);
Tailwind
colors: {
  custom: {
    50: '#657e57',
    500: '#284c18',
    950: '#000000',
  },
}
SCSS
$custom: #284c18;
$custom-light: #657e57;
$custom-dark: #000000;
JSON
{
  "hex": "#284c18",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 24
  },
  "hsl": {
    "h": 101.538,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.37645,
    "c": 0.09,
    "h": 137.3
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#284C18
secondary
#6D3D83
accent
#4CDBAF
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #284C18

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

Preview Lab → · Contrast checker → · Palette generator →

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