#285A17#285A17

#285A17 is a dark, moderate green. Relative luminance 0.078; OKLCH L 41.8% C 0.112 H 138.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#285A17
RGBrgb(40, 90, 23)
HSLhsl(105, 59%, 22%)
HSVhsv(105, 74%, 35%)
CMYKcmyk(55.6%, 0%, 74.4%, 64.7%)
CIE-LABlab(33.62, -30.52, 32.13)
CIE-LCHlch(33.62, 44.32, 133.53°)
OKLaboklab(41.76% -0.084 0.0733)
OKLCHoklch(41.76% 0.112 138.9)
XYZxyz(4.6857, 7.8250, 2.0739)
Luminance0.0783 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285A17 #49175A
analogous
#4A5A17 #285A17 #175A28
triadic
#285A17 #17285A #5A1728
tetradic
#285A17 #174A5A #49175A #5A2817
square
#285A17 #174A5A #49175A #5A2817
split-complementary
#285A17 #28175A #5A174A
monochromatic
#0B1806 #12290B #285A17 #3E8B23 #53BB30

Accessibility & contrast

On white

8.19
#285A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#285A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285A17
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285A17#FFFFFF#000000##FFFFFF
##285A171.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520D
Deuteranopia (green-blind)
#564D1D
Tritanopia (blue-blind)
#24574D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #285a17;
/* rgb */ color: rgb(40, 90, 23);
/* oklch */ color: oklch(41.8% 0.112 138.9);
Tailwind
colors: {
  custom: {
    50: '#688958',
    500: '#285a17',
    950: '#000000',
  },
}
SCSS
$custom: #285a17;
$custom-light: #688958;
$custom-dark: #000000;
JSON
{
  "hex": "#285a17",
  "rgb": {
    "r": 40,
    "g": 90,
    "b": 23
  },
  "hsl": {
    "h": 104.776,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.41755,
    "c": 0.11152,
    "h": 138.9
  },
  "luminance": 0.07825
}

Semantic roles & 50–950 ramp

primary
#285A17
secondary
#7B3C91
accent
#45E2BB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #285A17

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

Preview Lab → · Contrast checker → · Palette generator →

#285A17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva