#285912#285912

#285912 is a dark, moderate green. Relative luminance 0.076; OKLCH L 41.4% C 0.114 H 138.0°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#285912
RGBrgb(40, 89, 18)
HSLhsl(101, 66%, 21%)
HSVhsv(101, 80%, 35%)
CMYKcmyk(55.1%, 0%, 79.8%, 65.1%)
CIE-LABlab(33.22, -30.52, 33.85)
CIE-LCHlch(33.22, 45.58, 132.04°)
OKLaboklab(41.42% -0.0844 0.0761)
OKLCHoklch(41.42% 0.114 138)
XYZxyz(4.5565, 7.6392, 1.8066)
Luminance0.0764 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285912 #431259
analogous
#4B5912 #285912 #12591F
triadic
#285912 #122859 #591228
tetradic
#285912 #124B59 #431259 #591F12
square
#285912 #124B59 #431259 #591F12
split-complementary
#285912 #1F1259 #59124B
monochromatic
#0B1905 #112608 #285912 #3F8C1C #56BF27

Accessibility & contrast

On white

8.31
#285912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#285912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285912
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285912#FFFFFF#000000##FFFFFF
##2859121.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5105
Deuteranopia (green-blind)
#564D19
Tritanopia (blue-blind)
#24564B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #285912;
/* rgb */ color: rgb(40, 89, 18);
/* oklch */ color: oklch(41.4% 0.114 138.0);
Tailwind
colors: {
  custom: {
    50: '#688855',
    500: '#285912',
    950: '#000000',
  },
}
SCSS
$custom: #285912;
$custom-light: #688855;
$custom-dark: #000000;
JSON
{
  "hex": "#285912",
  "rgb": {
    "r": 40,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 101.408,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41417,
    "c": 0.11366,
    "h": 138
  },
  "luminance": 0.0764
}

Semantic roles & 50–950 ramp

primary
#285912
secondary
#753592
accent
#3FE9B4
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #285912

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

Preview Lab → · Contrast checker → · Palette generator →

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