#126C1B#126C1B

#126C1B is a mid, vivid green. Relative luminance 0.109; OKLCH L 46.4% C 0.141 H 144.0°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#126C1B
RGBrgb(18, 108, 27)
HSLhsl(126, 71%, 25%)
HSVhsv(126, 83%, 42%)
CMYKcmyk(83.3%, 0%, 75%, 57.6%)
CIE-LABlab(39.47, -42.12, 36.31)
CIE-LCHlch(39.47, 55.61, 139.23°)
OKLaboklab(46.43% -0.1139 0.0828)
OKLCHoklch(46.43% 0.141 144)
XYZxyz(5.8095, 10.9322, 2.8406)
Luminance0.1093 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126C1B #6C1263
analogous
#366C12 #126C1B #126C48
triadic
#126C1B #1B126C #6C1B12
tetradic
#126C1B #12366C #6C1263 #6C4812
square
#126C1B #12366C #6C1263 #6C4812
split-complementary
#126C1B #48126C #6C1236
monochromatic
#041A07 #09380E #126C1B #1BA028 #23D535

Accessibility & contrast

On white

6.59
#126C1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #126C1B
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126C1B#FFFFFF#000000##FFFFFF
##126C1B1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E610E
Deuteranopia (green-blind)
#655A23
Tritanopia (blue-blind)
#00695C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #126c1b;
/* rgb */ color: rgb(18, 108, 27);
/* oklch */ color: oklch(46.4% 0.141 144.0);
Tailwind
colors: {
  custom: {
    50: '#63975d',
    500: '#126c1b',
    950: '#000000',
  },
}
SCSS
$custom: #126c1b;
$custom-light: #63975d;
$custom-dark: #000000;
JSON
{
  "hex": "#126c1b",
  "rgb": {
    "r": 18,
    "g": 108,
    "b": 27
  },
  "hsl": {
    "h": 126,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46434,
    "c": 0.1408,
    "h": 144
  },
  "luminance": 0.10933
}

Semantic roles & 50–950 ramp

primary
#126C1B
secondary
#A33698
accent
#3ADCEE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E04
muted
#7A7E79

Preview Lab

Preview with #126C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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