#126D1C#126D1C

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

Color values

HEX#126D1C
RGBrgb(18, 109, 28)
HSLhsl(127, 72%, 25%)
HSVhsv(127, 83%, 43%)
CMYKcmyk(83.5%, 0%, 74.3%, 57.3%)
CIE-LABlab(39.83, -42.37, 36.27)
CIE-LCHlch(39.83, 55.77, 139.43°)
OKLaboklab(46.74% -0.1145 0.0828)
OKLCHoklch(46.74% 0.141 144.1)
XYZxyz(5.9273, 11.1490, 2.9380)
Luminance0.1115 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126D1C #6D1263
analogous
#366D12 #126D1C #126D49
triadic
#126D1C #1C126D #6D1C12
tetradic
#126D1C #12366D #6D1263 #6D4912
square
#126D1C #12366D #6D1263 #6D4912
split-complementary
#126D1C #49126D #6D1236
monochromatic
#041A07 #09380F #126D1C #1BA229 #23D637

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #126d1c;
/* rgb */ color: rgb(18, 109, 28);
/* oklch */ color: oklch(46.7% 0.141 144.1);
Tailwind
colors: {
  custom: {
    50: '#63985d',
    500: '#126d1c',
    950: '#000000',
  },
}
SCSS
$custom: #126d1c;
$custom-light: #63985d;
$custom-dark: #000000;
JSON
{
  "hex": "#126d1c",
  "rgb": {
    "r": 18,
    "g": 109,
    "b": 28
  },
  "hsl": {
    "h": 126.593,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46739,
    "c": 0.14134,
    "h": 144.1
  },
  "luminance": 0.1115
}

Semantic roles & 50–950 ramp

primary
#126D1C
secondary
#A43798
accent
#39DBEE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E04
muted
#7A7E79

Preview Lab

Preview with #126D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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