#285017#285017

#285017 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.8% C 0.097 H 137.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#285017
RGBrgb(40, 80, 23)
HSLhsl(102, 55%, 20%)
HSVhsv(102, 71%, 31%)
CMYKcmyk(50%, 0%, 71.2%, 68.6%)
CIE-LABlab(30.03, -25.99, 28.31)
CIE-LCHlch(30.03, 38.44, 132.55°)
OKLaboklab(38.81% -0.0718 0.0653)
OKLCHoklch(38.81% 0.097 137.7)
XYZxyz(3.8983, 6.2500, 1.8114)
Luminance0.0625 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285017 #3F1750
analogous
#455017 #285017 #175022
triadic
#285017 #172850 #501728
tetradic
#285017 #174550 #3F1750 #502217
square
#285017 #174550 #3F1750 #502217
split-complementary
#285017 #221750 #501745
monochromatic
#0C1807 #102009 #285017 #408025 #58AF32

Accessibility & contrast

On white

9.33
#285017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#285017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285017
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285017#FFFFFF#000000##FFFFFF
##2850171.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534910
Deuteranopia (green-blind)
#4D451C
Tritanopia (blue-blind)
#264D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #285017;
/* rgb */ color: rgb(40, 80, 23);
/* oklch */ color: oklch(38.8% 0.097 137.7);
Tailwind
colors: {
  custom: {
    50: '#668157',
    500: '#285017',
    950: '#000000',
  },
}
SCSS
$custom: #285017;
$custom-light: #668157;
$custom-dark: #000000;
JSON
{
  "hex": "#285017",
  "rgb": {
    "r": 40,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 102.105,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.38812,
    "c": 0.097,
    "h": 137.7
  },
  "luminance": 0.0625
}

Semantic roles & 50–950 ramp

primary
#285017
secondary
#713C87
accent
#49DFB2
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #285017

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

Preview Lab → · Contrast checker → · Palette generator →

#285017 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva