#285C12#285C12

#285C12 is a dark, moderate green. Relative luminance 0.081; OKLCH L 42.3% C 0.118 H 138.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#285C12
RGBrgb(40, 92, 18)
HSLhsl(102, 67%, 22%)
HSVhsv(102, 80%, 36%)
CMYKcmyk(56.5%, 0%, 80.4%, 63.9%)
CIE-LABlab(34.29, -31.81, 34.91)
CIE-LCHlch(34.29, 47.23, 132.34°)
OKLaboklab(42.3% -0.0879 0.0783)
OKLCHoklch(42.3% 0.118 138.3)
XYZxyz(4.8112, 8.1487, 1.8915)
Luminance0.0815 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285C12 #46125C
analogous
#4D5C12 #285C12 #125C21
triadic
#285C12 #12285C #5C1228
tetradic
#285C12 #124D5C #46125C #5C2112
square
#285C12 #124D5C #46125C #5C2112
split-complementary
#285C12 #21125C #5C124D
monochromatic
#0B1A05 #122908 #285C12 #3E8F1C #55C226

Accessibility & contrast

On white

7.99
#285C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#285C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285C12
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285C12#FFFFFF#000000##FFFFFF
##285C121.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5304
Deuteranopia (green-blind)
#584F1A
Tritanopia (blue-blind)
#24594E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #285c12;
/* rgb */ color: rgb(40, 92, 18);
/* oklch */ color: oklch(42.3% 0.118 138.3);
Tailwind
colors: {
  custom: {
    50: '#688b56',
    500: '#285c12',
    950: '#000000',
  },
}
SCSS
$custom: #285c12;
$custom-light: #688b56;
$custom-dark: #000000;
JSON
{
  "hex": "#285c12",
  "rgb": {
    "r": 40,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 102.162,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42298,
    "c": 0.11772,
    "h": 138.3
  },
  "luminance": 0.08149
}

Semantic roles & 50–950 ramp

primary
#285C12
secondary
#783594
accent
#3EEAB7
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #285C12

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

Preview Lab → · Contrast checker → · Palette generator →

#285C12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva