#126D21#126D21

#126D21 is a mid, vivid green. Relative luminance 0.112; OKLCH L 46.8% C 0.138 H 145.0°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#126D21
RGBrgb(18, 109, 33)
HSLhsl(130, 72%, 25%)
HSVhsv(130, 83%, 43%)
CMYKcmyk(83.5%, 0%, 69.7%, 57.3%)
CIE-LABlab(39.87, -41.84, 34.11)
CIE-LCHlch(39.87, 53.98, 140.81°)
OKLaboklab(46.79% -0.1128 0.0789)
OKLCHoklch(46.79% 0.138 145)
XYZxyz(5.9922, 11.1750, 3.2797)
Luminance0.1118 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126D21 #6D125E
analogous
#316D12 #126D21 #126D4F
triadic
#126D21 #21126D #6D2112
tetradic
#126D21 #12316D #6D125E #6D4F12
square
#126D21 #12316D #6D125E #6D4F12
split-complementary
#126D21 #4F126D #6D1231
monochromatic
#041A08 #093811 #126D21 #1BA231 #23D641

Accessibility & contrast

On white

6.49
#126D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#126D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126D21
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126D21#FFFFFF#000000##FFFFFF
##126D211.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6217
Deuteranopia (green-blind)
#655B28
Tritanopia (blue-blind)
#006A5D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #126d21;
/* rgb */ color: rgb(18, 109, 33);
/* oklch */ color: oklch(46.8% 0.138 145.0);
Tailwind
colors: {
  custom: {
    50: '#639860',
    500: '#126d21',
    950: '#000000',
  },
}
SCSS
$custom: #126d21;
$custom-light: #639860;
$custom-dark: #000000;
JSON
{
  "hex": "#126d21",
  "rgb": {
    "r": 18,
    "g": 109,
    "b": 33
  },
  "hsl": {
    "h": 129.89,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46789,
    "c": 0.13769,
    "h": 145
  },
  "luminance": 0.11176
}

Semantic roles & 50–950 ramp

primary
#126D21
secondary
#A43792
accent
#39D1EE
background
#F6F9F5
surface
#EBF2EA
border
#C6CCC6
text
#060E05
muted
#7A7E79

Preview Lab

Preview with #126D21

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

Preview Lab → · Contrast checker → · Palette generator →

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