#126012#126012

#126012 is a dark, vivid green. Relative luminance 0.085; OKLCH L 42.8% C 0.132 H 142.8°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#126012
RGBrgb(18, 96, 18)
HSLhsl(120, 68%, 22%)
HSVhsv(120, 81%, 38%)
CMYKcmyk(81.3%, 0%, 81.3%, 62.4%)
CIE-LABlab(35.08, -38.73, 35.47)
CIE-LCHlch(35.08, 52.52, 137.52°)
OKLaboklab(42.77% -0.1051 0.0797)
OKLCHoklch(42.77% 0.132 142.8)
XYZxyz(4.5412, 8.5375, 1.9807)
Luminance0.0854 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126012 #601260
analogous
#396012 #126012 #126039
triadic
#126012 #121260 #601212
tetradic
#126012 #123960 #601260 #603912
square
#126012 #123960 #601260 #603912
split-complementary
#126012 #391260 #601239
monochromatic
#051A05 #082C08 #126012 #1C941C #25C725

Accessibility & contrast

On white

7.76
#126012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#126012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #126012
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126012#FFFFFF#000000##FFFFFF
##1260121.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625602
Deuteranopia (green-blind)
#5A501B
Tritanopia (blue-blind)
#005D51
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #126012;
/* rgb */ color: rgb(18, 96, 18);
/* oklch */ color: oklch(42.8% 0.132 142.8);
Tailwind
colors: {
  custom: {
    50: '#608e56',
    500: '#126012',
    950: '#000000',
  },
}
SCSS
$custom: #126012;
$custom-light: #608e56;
$custom-dark: #000000;
JSON
{
  "hex": "#126012",
  "rgb": {
    "r": 18,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 120,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42765,
    "c": 0.13193,
    "h": 142.8
  },
  "luminance": 0.08538
}

Semantic roles & 50–950 ramp

primary
#126012
secondary
#983698
accent
#3DEBEB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#050C03
muted
#7A7D78

Preview Lab

Preview with #126012

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

Preview Lab → · Contrast checker → · Palette generator →

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