#126A12#126A12

#126A12 is a mid, vivid green. Relative luminance 0.105; OKLCH L 45.8% C 0.144 H 142.8°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#126A12
RGBrgb(18, 106, 18)
HSLhsl(120, 71%, 24%)
HSVhsv(120, 83%, 42%)
CMYKcmyk(83%, 0%, 83%, 58.4%)
CIE-LABlab(38.69, -42.19, 38.97)
CIE-LCHlch(38.69, 57.44, 137.27°)
OKLaboklab(45.77% -0.1145 0.087)
OKLCHoklch(45.77% 0.144 142.8)
XYZxyz(5.5123, 10.4797, 2.3044)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126A12 #6A126A
analogous
#3E6A12 #126A12 #126A3E
triadic
#126A12 #12126A #6A1212
tetradic
#126A12 #123E6A #6A126A #6A3E12
square
#126A12 #123E6A #6A126A #6A3E12
split-complementary
#126A12 #3E126A #6A123E
monochromatic
#041A04 #093609 #126A12 #1B9E1B #24D324

Accessibility & contrast

On white

6.78
#126A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#126A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126A12
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126A12#FFFFFF#000000##FFFFFF
##126A121.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F00
Deuteranopia (green-blind)
#63591D
Tritanopia (blue-blind)
#00675A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #126a12;
/* rgb */ color: rgb(18, 106, 18);
/* oklch */ color: oklch(45.8% 0.144 142.8);
Tailwind
colors: {
  custom: {
    50: '#639658',
    500: '#126a12',
    950: '#000000',
  },
}
SCSS
$custom: #126a12;
$custom-light: #639658;
$custom-dark: #000000;
JSON
{
  "hex": "#126a12",
  "rgb": {
    "r": 18,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 120,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45769,
    "c": 0.14383,
    "h": 142.8
  },
  "luminance": 0.1048
}

Semantic roles & 50–950 ramp

primary
#126A12
secondary
#A236A2
accent
#3AEEEE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060D04
muted
#7A7E79

Preview Lab

Preview with #126A12

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

Preview Lab → · Contrast checker → · Palette generator →

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