#126A1B#126A1B

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

Color values

HEX#126A1B
RGBrgb(18, 106, 27)
HSLhsl(126, 71%, 24%)
HSVhsv(126, 83%, 42%)
CMYKcmyk(83%, 0%, 74.5%, 58.4%)
CIE-LABlab(38.75, -41.43, 35.57)
CIE-LCHlch(38.75, 54.60, 139.35°)
OKLaboklab(45.84% -0.112 0.0812)
OKLCHoklch(45.84% 0.138 144.1)
XYZxyz(5.6009, 10.5151, 2.7711)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126A1B #6A1261
analogous
#356A12 #126A1B #126A47
triadic
#126A1B #1B126A #6A1B12
tetradic
#126A1B #12356A #6A1261 #6A4712
square
#126A1B #12356A #6A1261 #6A4712
split-complementary
#126A1B #47126A #6A1235
monochromatic
#041A07 #09360E #126A1B #1B9E28 #24D336

Accessibility & contrast

On white

6.77
#126A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #126A1B
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126A1B#FFFFFF#000000##FFFFFF
##126A1B1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F0E
Deuteranopia (green-blind)
#635923
Tritanopia (blue-blind)
#00675A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #126a1b;
/* rgb */ color: rgb(18, 106, 27);
/* oklch */ color: oklch(45.8% 0.138 144.1);
Tailwind
colors: {
  custom: {
    50: '#62965c',
    500: '#126a1b',
    950: '#000000',
  },
}
SCSS
$custom: #126a1b;
$custom-light: #62965c;
$custom-dark: #000000;
JSON
{
  "hex": "#126a1b",
  "rgb": {
    "r": 18,
    "g": 106,
    "b": 27
  },
  "hsl": {
    "h": 126.136,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.4584,
    "c": 0.13836,
    "h": 144.1
  },
  "luminance": 0.10516
}

Semantic roles & 50–950 ramp

primary
#126A1B
secondary
#A23697
accent
#3ADBEE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060D04
muted
#7A7E79

Preview Lab

Preview with #126A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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