#285D17#285D17

#285D17 is a dark, moderate green. Relative luminance 0.083; OKLCH L 42.6% C 0.116 H 139.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#285D17
RGBrgb(40, 93, 23)
HSLhsl(105, 60%, 23%)
HSVhsv(105, 75%, 36%)
CMYKcmyk(57%, 0%, 75.3%, 63.5%)
CIE-LABlab(34.68, -31.82, 33.24)
CIE-LCHlch(34.68, 46.02, 133.75°)
OKLaboklab(42.63% -0.0876 0.0756)
OKLCHoklch(42.63% 0.116 139.2)
XYZxyz(4.9439, 8.3413, 2.1600)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285D17 #4C175D
analogous
#4B5D17 #285D17 #175D29
triadic
#285D17 #17285D #5D1728
tetradic
#285D17 #174B5D #4C175D #5D2917
square
#285D17 #174B5D #4C175D #5D2917
split-complementary
#285D17 #29175D #5D174B
monochromatic
#0B1906 #132C0B #285D17 #3D8E23 #52BF2F

Accessibility & contrast

On white

7.87
#285D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#285D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285D17
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285D17#FFFFFF#000000##FFFFFF
##285D171.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60540C
Deuteranopia (green-blind)
#59501E
Tritanopia (blue-blind)
#235A4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #285d17;
/* rgb */ color: rgb(40, 93, 23);
/* oklch */ color: oklch(42.6% 0.116 139.2);
Tailwind
colors: {
  custom: {
    50: '#688b59',
    500: '#285d17',
    950: '#000000',
  },
}
SCSS
$custom: #285d17;
$custom-light: #688b59;
$custom-dark: #000000;
JSON
{
  "hex": "#285d17",
  "rgb": {
    "r": 40,
    "g": 93,
    "b": 23
  },
  "hsl": {
    "h": 105.429,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42634,
    "c": 0.11569,
    "h": 139.2
  },
  "luminance": 0.08342
}

Semantic roles & 50–950 ramp

primary
#285D17
secondary
#7E3C94
accent
#44E3BD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #285D17

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

Preview Lab → · Contrast checker → · Palette generator →

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