#126C27#126C27

#126C27 is a mid, vivid green. Relative luminance 0.110; OKLCH L 46.6% C 0.132 H 146.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#126C27
RGBrgb(18, 108, 39)
HSLhsl(134, 71%, 25%)
HSVhsv(134, 83%, 42%)
CMYKcmyk(83.3%, 0%, 63.9%, 57.6%)
CIE-LABlab(39.58, -40.73, 30.89)
CIE-LCHlch(39.58, 51.12, 142.82°)
OKLaboklab(46.57% -0.1096 0.0727)
OKLCHoklch(46.57% 0.132 146.5)
XYZxyz(5.9778, 10.9995, 3.7271)
Luminance0.1100 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126C27 #6C1257
analogous
#2A6C12 #126C27 #126C54
triadic
#126C27 #27126C #6C2712
tetradic
#126C27 #122A6C #6C1257 #6C5412
square
#126C27 #122A6C #6C1257 #6C5412
split-complementary
#126C27 #54126C #6C122A
monochromatic
#041A09 #093814 #126C27 #1BA03A #23D54D

Accessibility & contrast

On white

6.56
#126C27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#126C27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126C27
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126C27#FFFFFF#000000##FFFFFF
##126C271.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6120
Deuteranopia (green-blind)
#645B2D
Tritanopia (blue-blind)
#00695D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #126c27;
/* rgb */ color: rgb(18, 108, 39);
/* oklch */ color: oklch(46.6% 0.132 146.5);
Tailwind
colors: {
  custom: {
    50: '#629764',
    500: '#126c27',
    950: '#000000',
  },
}
SCSS
$custom: #126c27;
$custom-light: #629764;
$custom-dark: #000000;
JSON
{
  "hex": "#126c27",
  "rgb": {
    "r": 18,
    "g": 108,
    "b": 39
  },
  "hsl": {
    "h": 134,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46565,
    "c": 0.13151,
    "h": 146.5
  },
  "luminance": 0.11
}

Semantic roles & 50–950 ramp

primary
#126C27
secondary
#A3368A
accent
#3AC4EE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060D05
muted
#7A7E7A

Preview Lab

Preview with #126C27

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

Preview Lab → · Contrast checker → · Palette generator →

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