#126C20#126C20

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

Color values

HEX#126C20
RGBrgb(18, 108, 32)
HSLhsl(129, 71%, 25%)
HSVhsv(129, 83%, 42%)
CMYKcmyk(83.3%, 0%, 70.4%, 57.6%)
CIE-LABlab(39.51, -41.60, 34.17)
CIE-LCHlch(39.51, 53.83, 140.60°)
OKLaboklab(46.48% -0.1122 0.0789)
OKLCHoklch(46.48% 0.137 144.9)
XYZxyz(5.8723, 10.9573, 3.1717)
Luminance0.1096 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126C20 #6C125E
analogous
#316C12 #126C20 #126C4D
triadic
#126C20 #20126C #6C2012
tetradic
#126C20 #12316C #6C125E #6C4D12
square
#126C20 #12316C #6C125E #6C4D12
split-complementary
#126C20 #4D126C #6C1231
monochromatic
#041A08 #093810 #126C20 #1BA030 #23D53F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##126C20#FFFFFF#000000##FFFFFF
##126C201.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)
#6E6116
Deuteranopia (green-blind)
#645A27
Tritanopia (blue-blind)
#00695C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #126c20;
/* rgb */ color: rgb(18, 108, 32);
/* oklch */ color: oklch(46.5% 0.137 144.9);
Tailwind
colors: {
  custom: {
    50: '#62975f',
    500: '#126c20',
    950: '#000000',
  },
}
SCSS
$custom: #126c20;
$custom-light: #62975f;
$custom-dark: #000000;
JSON
{
  "hex": "#126c20",
  "rgb": {
    "r": 18,
    "g": 108,
    "b": 32
  },
  "hsl": {
    "h": 129.333,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46483,
    "c": 0.1372,
    "h": 144.9
  },
  "luminance": 0.10958
}

Semantic roles & 50–950 ramp

primary
#126C20
secondary
#A33692
accent
#3AD2EE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E05
muted
#7A7E79

Preview Lab

Preview with #126C20

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

Preview Lab → · Contrast checker → · Palette generator →

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