#285A12#285A12

#285A12 is a dark, moderate green. Relative luminance 0.078; OKLCH L 41.7% C 0.115 H 138.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#285A12
RGBrgb(40, 90, 18)
HSLhsl(102, 67%, 21%)
HSVhsv(102, 80%, 35%)
CMYKcmyk(55.6%, 0%, 80%, 64.7%)
CIE-LABlab(33.58, -30.95, 34.21)
CIE-LCHlch(33.58, 46.13, 132.14°)
OKLaboklab(41.71% -0.0856 0.0769)
OKLCHoklch(41.71% 0.115 138.1)
XYZxyz(4.6403, 7.8068, 1.8345)
Luminance0.0781 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285A12 #44125A
analogous
#4C5A12 #285A12 #125A20
triadic
#285A12 #12285A #5A1228
tetradic
#285A12 #124C5A #44125A #5A2012
square
#285A12 #124C5A #44125A #5A2012
split-complementary
#285A12 #20125A #5A124C
monochromatic
#0B1A05 #112708 #285A12 #3F8D1C #55C026

Accessibility & contrast

On white

8.20
#285A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#285A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285A12
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285A12#FFFFFF#000000##FFFFFF
##285A121.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5204
Deuteranopia (green-blind)
#574D19
Tritanopia (blue-blind)
#24574C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #285a12;
/* rgb */ color: rgb(40, 90, 18);
/* oklch */ color: oklch(41.7% 0.115 138.1);
Tailwind
colors: {
  custom: {
    50: '#688956',
    500: '#285a12',
    950: '#000000',
  },
}
SCSS
$custom: #285a12;
$custom-light: #688956;
$custom-dark: #000000;
JSON
{
  "hex": "#285a12",
  "rgb": {
    "r": 40,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 101.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.41711,
    "c": 0.11502,
    "h": 138.1
  },
  "luminance": 0.07807
}

Semantic roles & 50–950 ramp

primary
#285A12
secondary
#763593
accent
#3EEAB5
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #285A12

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

Preview Lab → · Contrast checker → · Palette generator →

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