#126B1F#126B1F

#126B1F is a mid, vivid green. Relative luminance 0.107; OKLCH L 46.2% C 0.137 H 144.7°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#126B1F
RGBrgb(18, 107, 31)
HSLhsl(129, 71%, 25%)
HSVhsv(129, 83%, 42%)
CMYKcmyk(83.2%, 0%, 71%, 58%)
CIE-LABlab(39.14, -41.36, 34.23)
CIE-LCHlch(39.14, 53.68, 140.39°)
OKLaboklab(46.18% -0.1116 0.0789)
OKLCHoklch(46.18% 0.137 144.7)
XYZxyz(5.7541, 10.7422, 3.0663)
Luminance0.1074 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126B1F #6B125E
analogous
#326B12 #126B1F #126B4C
triadic
#126B1F #1F126B #6B1F12
tetradic
#126B1F #12326B #6B125E #6B4C12
square
#126B1F #12326B #6B125E #6B4C12
split-complementary
#126B1F #4C126B #6B1232
monochromatic
#041A08 #093710 #126B1F #1B9F2E #24D43D

Accessibility & contrast

On white

6.67
#126B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#126B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126B1F
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126B1F#FFFFFF#000000##FFFFFF
##126B1F1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6015
Deuteranopia (green-blind)
#635A26
Tritanopia (blue-blind)
#00685C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #126b1f;
/* rgb */ color: rgb(18, 107, 31);
/* oklch */ color: oklch(46.2% 0.137 144.7);
Tailwind
colors: {
  custom: {
    50: '#62965f',
    500: '#126b1f',
    950: '#000000',
  },
}
SCSS
$custom: #126b1f;
$custom-light: #62965f;
$custom-dark: #000000;
JSON
{
  "hex": "#126b1f",
  "rgb": {
    "r": 18,
    "g": 107,
    "b": 31
  },
  "hsl": {
    "h": 128.764,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.46176,
    "c": 0.1367,
    "h": 144.7
  },
  "luminance": 0.10743
}

Semantic roles & 50–950 ramp

primary
#126B1F
secondary
#A23693
accent
#3AD4EE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060D05
muted
#7A7E79

Preview Lab

Preview with #126B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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