#285817#285817

#285817 is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.2% C 0.109 H 138.7°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#285817
RGBrgb(40, 88, 23)
HSLhsl(104, 59%, 22%)
HSVhsv(104, 74%, 35%)
CMYKcmyk(54.5%, 0%, 73.9%, 65.5%)
CIE-LABlab(32.90, -29.64, 31.38)
CIE-LCHlch(32.90, 43.17, 133.37°)
OKLaboklab(41.17% -0.0817 0.0717)
OKLCHoklch(41.17% 0.109 138.7)
XYZxyz(4.5193, 7.4921, 2.0184)
Luminance0.0749 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285817 #471758
analogous
#495817 #285817 #175827
triadic
#285817 #172858 #581728
tetradic
#285817 #174958 #471758 #582717
square
#285817 #174958 #471758 #582717
split-complementary
#285817 #271758 #581749
monochromatic
#0B1806 #12270A #285817 #3E8924 #54B930

Accessibility & contrast

On white

8.41
#285817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#285817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285817
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285817#FFFFFF#000000##FFFFFF
##2858171.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500E
Deuteranopia (green-blind)
#554C1D
Tritanopia (blue-blind)
#24554B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #285817;
/* rgb */ color: rgb(40, 88, 23);
/* oklch */ color: oklch(41.2% 0.109 138.7);
Tailwind
colors: {
  custom: {
    50: '#678858',
    500: '#285817',
    950: '#000000',
  },
}
SCSS
$custom: #285817;
$custom-light: #678858;
$custom-dark: #000000;
JSON
{
  "hex": "#285817",
  "rgb": {
    "r": 40,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 104.308,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41167,
    "c": 0.10868,
    "h": 138.7
  },
  "luminance": 0.07492
}

Semantic roles & 50–950 ramp

primary
#285817
secondary
#793C8F
accent
#46E2B9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #285817

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

Preview Lab → · Contrast checker → · Palette generator →

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