#126A1F#126A1F

#126A1F is a mid, vivid green. Relative luminance 0.105; OKLCH L 45.9% C 0.135 H 144.8°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#126A1F
RGBrgb(18, 106, 31)
HSLhsl(129, 71%, 24%)
HSVhsv(129, 83%, 42%)
CMYKcmyk(83%, 0%, 70.8%, 58.4%)
CIE-LABlab(38.79, -41.00, 33.84)
CIE-LCHlch(38.79, 53.16, 140.47°)
OKLaboklab(45.88% -0.1107 0.0781)
OKLCHoklch(45.88% 0.135 144.8)
XYZxyz(5.6504, 10.5349, 3.0317)
Luminance0.1054 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126A1F #6A125D
analogous
#316A12 #126A1F #126A4B
triadic
#126A1F #1F126A #6A1F12
tetradic
#126A1F #12316A #6A125D #6A4B12
square
#126A1F #12316A #6A125D #6A4B12
split-complementary
#126A1F #4B126A #6A1231
monochromatic
#041A08 #093610 #126A1F #1B9E2E #24D33E

Accessibility & contrast

On white

6.76
#126A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#126A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126A1F
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126A1F#FFFFFF#000000##FFFFFF
##126A1F1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F15
Deuteranopia (green-blind)
#625926
Tritanopia (blue-blind)
#00675B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #126a1f;
/* rgb */ color: rgb(18, 106, 31);
/* oklch */ color: oklch(45.9% 0.135 144.8);
Tailwind
colors: {
  custom: {
    50: '#62965f',
    500: '#126a1f',
    950: '#000000',
  },
}
SCSS
$custom: #126a1f;
$custom-light: #62965f;
$custom-dark: #000000;
JSON
{
  "hex": "#126a1f",
  "rgb": {
    "r": 18,
    "g": 106,
    "b": 31
  },
  "hsl": {
    "h": 128.864,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45879,
    "c": 0.13545,
    "h": 144.8
  },
  "luminance": 0.10536
}

Semantic roles & 50–950 ramp

primary
#126A1F
secondary
#A23692
accent
#3AD3EE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060D05
muted
#7A7E79

Preview Lab

Preview with #126A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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