#126D1B#126D1B

#126D1B is a mid, vivid green. Relative luminance 0.111; OKLCH L 46.7% C 0.142 H 144.0°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#126D1B
RGBrgb(18, 109, 27)
HSLhsl(126, 72%, 25%)
HSVhsv(126, 83%, 43%)
CMYKcmyk(83.5%, 0%, 75.2%, 57.3%)
CIE-LABlab(39.82, -42.47, 36.68)
CIE-LCHlch(39.82, 56.12, 139.18°)
OKLaboklab(46.73% -0.1148 0.0836)
OKLCHoklch(46.73% 0.142 144)
XYZxyz(5.9155, 11.1443, 2.8760)
Luminance0.1114 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126D1B #6D1264
analogous
#376D12 #126D1B #126D49
triadic
#126D1B #1B126D #6D1B12
tetradic
#126D1B #12376D #6D1264 #6D4912
square
#126D1B #12376D #6D1264 #6D4912
split-complementary
#126D1B #49126D #6D1237
monochromatic
#041A07 #09380E #126D1B #1BA228 #23D635

Accessibility & contrast

On white

6.50
#126D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#126D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126D1B
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126D1B#FFFFFF#000000##FFFFFF
##126D1B1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F620D
Deuteranopia (green-blind)
#655B23
Tritanopia (blue-blind)
#006A5D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #126d1b;
/* rgb */ color: rgb(18, 109, 27);
/* oklch */ color: oklch(46.7% 0.142 144.0);
Tailwind
colors: {
  custom: {
    50: '#63985d',
    500: '#126d1b',
    950: '#000000',
  },
}
SCSS
$custom: #126d1b;
$custom-light: #63985d;
$custom-dark: #000000;
JSON
{
  "hex": "#126d1b",
  "rgb": {
    "r": 18,
    "g": 109,
    "b": 27
  },
  "hsl": {
    "h": 125.934,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.4673,
    "c": 0.14202,
    "h": 144
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#126D1B
secondary
#A43799
accent
#39DCEE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E04
muted
#7A7E79

Preview Lab

Preview with #126D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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