#126C1F#126C1F

#126C1F is a mid, vivid green. Relative luminance 0.110; OKLCH L 46.5% C 0.138 H 144.7°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#126C1F
RGBrgb(18, 108, 31)
HSLhsl(129, 71%, 25%)
HSVhsv(129, 83%, 42%)
CMYKcmyk(83.3%, 0%, 71.3%, 57.6%)
CIE-LABlab(39.50, -41.71, 34.61)
CIE-LCHlch(39.50, 54.20, 140.31°)
OKLaboklab(46.47% -0.1126 0.0797)
OKLCHoklch(46.47% 0.138 144.7)
XYZxyz(5.8589, 10.9519, 3.1012)
Luminance0.1095 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126C1F #6C125F
analogous
#326C12 #126C1F #126C4C
triadic
#126C1F #1F126C #6C1F12
tetradic
#126C1F #12326C #6C125F #6C4C12
square
#126C1F #12326C #6C125F #6C4C12
split-complementary
#126C1F #4C126C #6C1232
monochromatic
#041A08 #093810 #126C1F #1BA02E #23D53D

Accessibility & contrast

On white

6.58
#126C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#126C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126C1F
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126C1F#FFFFFF#000000##FFFFFF
##126C1F1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6114
Deuteranopia (green-blind)
#645A26
Tritanopia (blue-blind)
#00695C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #126c1f;
/* rgb */ color: rgb(18, 108, 31);
/* oklch */ color: oklch(46.5% 0.138 144.7);
Tailwind
colors: {
  custom: {
    50: '#62975f',
    500: '#126c1f',
    950: '#000000',
  },
}
SCSS
$custom: #126c1f;
$custom-light: #62975f;
$custom-dark: #000000;
JSON
{
  "hex": "#126c1f",
  "rgb": {
    "r": 18,
    "g": 108,
    "b": 31
  },
  "hsl": {
    "h": 128.667,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46472,
    "c": 0.13796,
    "h": 144.7
  },
  "luminance": 0.10953
}

Semantic roles & 50–950 ramp

primary
#126C1F
secondary
#A33694
accent
#3AD4EE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E05
muted
#7A7E79

Preview Lab

Preview with #126C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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