#126A1C#126A1C

#126A1C is a mid, vivid green. Relative luminance 0.105; OKLCH L 45.8% C 0.138 H 144.2°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#126A1C
RGBrgb(18, 106, 28)
HSLhsl(127, 71%, 24%)
HSVhsv(127, 83%, 42%)
CMYKcmyk(83%, 0%, 73.6%, 58.4%)
CIE-LABlab(38.76, -41.33, 35.15)
CIE-LCHlch(38.76, 54.25, 139.62°)
OKLaboklab(45.85% -0.1117 0.0805)
OKLCHoklch(45.85% 0.138 144.2)
XYZxyz(5.6127, 10.5198, 2.8331)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126A1C #6A1260
analogous
#346A12 #126A1C #126A48
triadic
#126A1C #1C126A #6A1C12
tetradic
#126A1C #12346A #6A1260 #6A4812
square
#126A1C #12346A #6A1260 #6A4812
split-complementary
#126A1C #48126A #6A1234
monochromatic
#041A07 #09360E #126A1C #1B9E2A #24D338

Accessibility & contrast

On white

6.77
#126A1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#126A1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126A1C
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126A1C#FFFFFF#000000##FFFFFF
##126A1C1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F10
Deuteranopia (green-blind)
#635924
Tritanopia (blue-blind)
#00675A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #126a1c;
/* rgb */ color: rgb(18, 106, 28);
/* oklch */ color: oklch(45.8% 0.138 144.2);
Tailwind
colors: {
  custom: {
    50: '#62965d',
    500: '#126a1c',
    950: '#000000',
  },
}
SCSS
$custom: #126a1c;
$custom-light: #62965d;
$custom-dark: #000000;
JSON
{
  "hex": "#126a1c",
  "rgb": {
    "r": 18,
    "g": 106,
    "b": 28
  },
  "hsl": {
    "h": 126.818,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45849,
    "c": 0.13766,
    "h": 144.2
  },
  "luminance": 0.10521
}

Semantic roles & 50–950 ramp

primary
#126A1C
secondary
#A23695
accent
#3AD9EE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060D04
muted
#7A7E79

Preview Lab

Preview with #126A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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