#126D1F#126D1F

#126D1F is a mid, vivid green. Relative luminance 0.112; OKLCH L 46.8% C 0.139 H 144.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#126D1F
RGBrgb(18, 109, 31)
HSLhsl(129, 72%, 25%)
HSVhsv(129, 83%, 43%)
CMYKcmyk(83.5%, 0%, 71.6%, 57.3%)
CIE-LABlab(39.86, -42.06, 34.99)
CIE-LCHlch(39.86, 54.71, 140.24°)
OKLaboklab(46.77% -0.1135 0.0805)
OKLCHoklch(46.77% 0.139 144.7)
XYZxyz(5.9650, 11.1641, 3.1366)
Luminance0.1116 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126D1F #6D1260
analogous
#336D12 #126D1F #126D4C
triadic
#126D1F #1F126D #6D1F12
tetradic
#126D1F #12336D #6D1260 #6D4C12
square
#126D1F #12336D #6D1260 #6D4C12
split-complementary
#126D1F #4C126D #6D1233
monochromatic
#041A07 #093810 #126D1F #1BA22E #23D63D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##126D1F#FFFFFF#000000##FFFFFF
##126D1F1.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)
#6F6214
Deuteranopia (green-blind)
#655B26
Tritanopia (blue-blind)
#006A5D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #126d1f;
/* rgb */ color: rgb(18, 109, 31);
/* oklch */ color: oklch(46.8% 0.139 144.7);
Tailwind
colors: {
  custom: {
    50: '#63985f',
    500: '#126d1f',
    950: '#000000',
  },
}
SCSS
$custom: #126d1f;
$custom-light: #63985f;
$custom-dark: #000000;
JSON
{
  "hex": "#126d1f",
  "rgb": {
    "r": 18,
    "g": 109,
    "b": 31
  },
  "hsl": {
    "h": 128.571,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46768,
    "c": 0.13919,
    "h": 144.7
  },
  "luminance": 0.11165
}

Semantic roles & 50–950 ramp

primary
#126D1F
secondary
#A43795
accent
#39D5EE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E05
muted
#7A7E79

Preview Lab

Preview with #126D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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