#285E12#285E12

#285E12 is a dark, vivid green. Relative luminance 0.085; OKLCH L 42.9% C 0.120 H 138.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#285E12
RGBrgb(40, 94, 18)
HSLhsl(103, 68%, 22%)
HSVhsv(103, 81%, 37%)
CMYKcmyk(57.4%, 0%, 80.9%, 63.1%)
CIE-LABlab(35.00, -32.66, 35.61)
CIE-LCHlch(35.00, 48.32, 132.52°)
OKLaboklab(42.89% -0.0902 0.0798)
OKLCHoklch(42.89% 0.12 138.5)
XYZxyz(4.9868, 8.4998, 1.9500)
Luminance0.0850 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285E12 #48125E
analogous
#4E5E12 #285E12 #125E22
triadic
#285E12 #12285E #5E1228
tetradic
#285E12 #124E5E #48125E #5E2212
square
#285E12 #124E5E #48125E #5E2212
split-complementary
#285E12 #22125E #5E124E
monochromatic
#0B1A05 #122B08 #285E12 #3E911C #54C526

Accessibility & contrast

On white

7.78
#285E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#285E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285E12
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285E12#FFFFFF#000000##FFFFFF
##285E121.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615503
Deuteranopia (green-blind)
#5A511A
Tritanopia (blue-blind)
#235A50
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #285e12;
/* rgb */ color: rgb(40, 94, 18);
/* oklch */ color: oklch(42.9% 0.120 138.5);
Tailwind
colors: {
  custom: {
    50: '#698c56',
    500: '#285e12',
    950: '#000000',
  },
}
SCSS
$custom: #285e12;
$custom-light: #698c56;
$custom-dark: #000000;
JSON
{
  "hex": "#285e12",
  "rgb": {
    "r": 40,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 102.632,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42885,
    "c": 0.1204,
    "h": 138.5
  },
  "luminance": 0.085
}

Semantic roles & 50–950 ramp

primary
#285E12
secondary
#7A3596
accent
#3DEBB8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #285E12

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

Preview Lab → · Contrast checker → · Palette generator →

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