#285812#285812

#285812 is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.1% C 0.112 H 137.8°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#285812
RGBrgb(40, 88, 18)
HSLhsl(101, 66%, 21%)
HSVhsv(101, 80%, 35%)
CMYKcmyk(54.5%, 0%, 79.5%, 65.5%)
CIE-LABlab(32.86, -30.08, 33.50)
CIE-LCHlch(32.86, 45.02, 131.93°)
OKLaboklab(41.12% -0.0832 0.0754)
OKLCHoklch(41.12% 0.112 137.8)
XYZxyz(4.4738, 7.4739, 1.7790)
Luminance0.0747 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285812 #421258
analogous
#4B5812 #285812 #12581F
triadic
#285812 #122858 #581228
tetradic
#285812 #124B58 #421258 #581F12
square
#285812 #124B58 #421258 #581F12
split-complementary
#285812 #1F1258 #58124B
monochromatic
#0C1905 #112508 #285812 #3F8B1C #56BE27

Accessibility & contrast

On white

8.42
#285812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#285812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285812
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285812#FFFFFF#000000##FFFFFF
##2858121.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5005
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#25554A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #285812;
/* rgb */ color: rgb(40, 88, 18);
/* oklch */ color: oklch(41.1% 0.112 137.8);
Tailwind
colors: {
  custom: {
    50: '#688855',
    500: '#285812',
    950: '#000000',
  },
}
SCSS
$custom: #285812;
$custom-light: #688855;
$custom-dark: #000000;
JSON
{
  "hex": "#285812",
  "rgb": {
    "r": 40,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 101.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41122,
    "c": 0.11228,
    "h": 137.8
  },
  "luminance": 0.07474
}

Semantic roles & 50–950 ramp

primary
#285812
secondary
#743591
accent
#3FE9B3
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #285812

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

Preview Lab → · Contrast checker → · Palette generator →

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