#285412#285412

#285412 is a dark, moderate green. Relative luminance 0.068; OKLCH L 39.9% C 0.107 H 137.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#285412
RGBrgb(40, 84, 18)
HSLhsl(100, 65%, 20%)
HSVhsv(100, 79%, 33%)
CMYKcmyk(52.4%, 0%, 78.6%, 67.1%)
CIE-LABlab(31.43, -28.31, 32.06)
CIE-LCHlch(31.43, 42.77, 131.45°)
OKLaboklab(39.94% -0.0784 0.0724)
OKLCHoklch(39.94% 0.107 137.3)
XYZxyz(4.1544, 6.8352, 1.6726)
Luminance0.0683 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285412 #3E1254
analogous
#495412 #285412 #12541D
triadic
#285412 #122854 #541228
tetradic
#285412 #124954 #3E1254 #541D12
square
#285412 #124954 #3E1254 #541D12
split-complementary
#285412 #1D1254 #541249
monochromatic
#0C1905 #102207 #285412 #40861D #58B928

Accessibility & contrast

On white

8.87
#285412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#285412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285412
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285412#FFFFFF#000000##FFFFFF
##2854121.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#514918
Tritanopia (blue-blind)
#255147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #285412;
/* rgb */ color: rgb(40, 84, 18);
/* oklch */ color: oklch(39.9% 0.107 137.3);
Tailwind
colors: {
  custom: {
    50: '#678455',
    500: '#285412',
    950: '#000000',
  },
}
SCSS
$custom: #285412;
$custom-light: #678455;
$custom-dark: #000000;
JSON
{
  "hex": "#285412",
  "rgb": {
    "r": 40,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 100,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.39943,
    "c": 0.10672,
    "h": 137.3
  },
  "luminance": 0.06835
}

Semantic roles & 50–950 ramp

primary
#285412
secondary
#70358D
accent
#40E8B0
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #285412

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

Preview Lab → · Contrast checker → · Palette generator →

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