#126C21#126C21

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

Color values

HEX#126C21
RGBrgb(18, 108, 33)
HSLhsl(130, 71%, 25%)
HSVhsv(130, 83%, 42%)
CMYKcmyk(83.3%, 0%, 69.4%, 57.6%)
CIE-LABlab(39.52, -41.48, 33.72)
CIE-LCHlch(39.52, 53.46, 140.90°)
OKLaboklab(46.49% -0.1119 0.0781)
OKLCHoklch(46.49% 0.136 145.1)
XYZxyz(5.8861, 10.9628, 3.2444)
Luminance0.1096 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126C21 #6C125D
analogous
#306C12 #126C21 #126C4E
triadic
#126C21 #21126C #6C2112
tetradic
#126C21 #12306C #6C125D #6C4E12
square
#126C21 #12306C #6C125D #6C4E12
split-complementary
#126C21 #4E126C #6C1230
monochromatic
#041A08 #093811 #126C21 #1BA031 #23D541

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##126C21#FFFFFF#000000##FFFFFF
##126C211.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)
#6E6117
Deuteranopia (green-blind)
#645A28
Tritanopia (blue-blind)
#00695D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #126c21;
/* rgb */ color: rgb(18, 108, 33);
/* oklch */ color: oklch(46.5% 0.136 145.1);
Tailwind
colors: {
  custom: {
    50: '#629760',
    500: '#126c21',
    950: '#000000',
  },
}
SCSS
$custom: #126c21;
$custom-light: #629760;
$custom-dark: #000000;
JSON
{
  "hex": "#126c21",
  "rgb": {
    "r": 18,
    "g": 108,
    "b": 33
  },
  "hsl": {
    "h": 130,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46493,
    "c": 0.13643,
    "h": 145.1
  },
  "luminance": 0.10964
}

Semantic roles & 50–950 ramp

primary
#126C21
secondary
#A33691
accent
#3AD0EE
background
#F6F9F5
surface
#EBF2EA
border
#C6CCC6
text
#060E05
muted
#7A7E79

Preview Lab

Preview with #126C21

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

Preview Lab → · Contrast checker → · Palette generator →

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