#286212#286212

#286212 is a dark, vivid green. Relative luminance 0.092; OKLCH L 44.1% C 0.126 H 138.9°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#286212
RGBrgb(40, 98, 18)
HSLhsl(104, 69%, 23%)
HSVhsv(104, 82%, 38%)
CMYKcmyk(59.2%, 0%, 81.6%, 61.6%)
CIE-LABlab(36.42, -34.32, 36.99)
CIE-LCHlch(36.42, 50.46, 132.85°)
OKLaboklab(44.06% -0.0946 0.0827)
OKLCHoklch(44.06% 0.126 138.9)
XYZxyz(5.3517, 9.2297, 2.0716)
Luminance0.0923 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286212 #4C1262
analogous
#506212 #286212 #126224
triadic
#286212 #122862 #621228
tetradic
#286212 #125062 #4C1262 #622412
square
#286212 #125062 #4C1262 #622412
split-complementary
#286212 #241262 #621250
monochromatic
#0B1A05 #132E09 #286212 #3D961B #52C925

Accessibility & contrast

On white

7.38
#286212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#286212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #286212
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286212#FFFFFF#000000##FFFFFF
##2862121.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655901
Deuteranopia (green-blind)
#5E541B
Tritanopia (blue-blind)
#225E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #286212;
/* rgb */ color: rgb(40, 98, 18);
/* oklch */ color: oklch(44.1% 0.126 138.9);
Tailwind
colors: {
  custom: {
    50: '#6a8f57',
    500: '#286212',
    950: '#000000',
  },
}
SCSS
$custom: #286212;
$custom-light: #6a8f57;
$custom-dark: #000000;
JSON
{
  "hex": "#286212",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 103.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44057,
    "c": 0.12567,
    "h": 138.9
  },
  "luminance": 0.0923
}

Semantic roles & 50–950 ramp

primary
#286212
secondary
#7E369A
accent
#3CECBB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #286212

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

Preview Lab → · Contrast checker → · Palette generator →

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