#126212#126212

#126212 is a dark, vivid green. Relative luminance 0.089; OKLCH L 43.4% C 0.134 H 142.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#126212
RGBrgb(18, 98, 18)
HSLhsl(120, 69%, 23%)
HSVhsv(120, 82%, 38%)
CMYKcmyk(81.6%, 0%, 81.6%, 61.6%)
CIE-LABlab(35.80, -39.44, 36.18)
CIE-LCHlch(35.80, 53.52, 137.47°)
OKLaboklab(43.37% -0.107 0.0812)
OKLCHoklch(43.37% 0.134 142.8)
XYZxyz(4.7260, 8.9071, 2.0423)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126212 #621262
analogous
#3A6212 #126212 #12623A
triadic
#126212 #121262 #621212
tetradic
#126212 #123A62 #621262 #623A12
square
#126212 #123A62 #621262 #623A12
split-complementary
#126212 #3A1262 #62123A
monochromatic
#051A05 #092E09 #126212 #1B961B #25C925

Accessibility & contrast

On white

7.55
#126212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#126212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #126212
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126212#FFFFFF#000000##FFFFFF
##1262121.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645802
Deuteranopia (green-blind)
#5C521B
Tritanopia (blue-blind)
#005F53
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #126212;
/* rgb */ color: rgb(18, 98, 18);
/* oklch */ color: oklch(43.4% 0.134 142.8);
Tailwind
colors: {
  custom: {
    50: '#609057',
    500: '#126212',
    950: '#000000',
  },
}
SCSS
$custom: #126212;
$custom-light: #609057;
$custom-dark: #000000;
JSON
{
  "hex": "#126212",
  "rgb": {
    "r": 18,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 120,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43369,
    "c": 0.13435,
    "h": 142.8
  },
  "luminance": 0.08908
}

Semantic roles & 50–950 ramp

primary
#126212
secondary
#9A369A
accent
#3CECEC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C03
muted
#7A7D78

Preview Lab

Preview with #126212

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

Preview Lab → · Contrast checker → · Palette generator →

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