#126F21#126F21

#126F21 is a mid, vivid green. Relative luminance 0.116; OKLCH L 47.4% C 0.140 H 144.9°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#126F21
RGBrgb(18, 111, 33)
HSLhsl(130, 72%, 25%)
HSVhsv(130, 84%, 44%)
CMYKcmyk(83.8%, 0%, 70.3%, 56.5%)
CIE-LABlab(40.58, -42.53, 34.88)
CIE-LCHlch(40.58, 55.01, 140.65°)
OKLaboklab(47.38% -0.1147 0.0805)
OKLCHoklch(47.38% 0.14 144.9)
XYZxyz(6.2080, 11.6065, 3.3517)
Luminance0.1161 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126F21 #6F1260
analogous
#326F12 #126F21 #126F4F
triadic
#126F21 #21126F #6F2112
tetradic
#126F21 #12326F #6F1260 #6F4F12
square
#126F21 #12326F #6F1260 #6F4F12
split-complementary
#126F21 #4F126F #6F1232
monochromatic
#041A08 #093A11 #126F21 #1BA431 #23D840

Accessibility & contrast

On white

6.32
#126F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#126F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126F21
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126F21#FFFFFF#000000##FFFFFF
##126F211.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716417
Deuteranopia (green-blind)
#675D28
Tritanopia (blue-blind)
#006C5F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #126f21;
/* rgb */ color: rgb(18, 111, 33);
/* oklch */ color: oklch(47.4% 0.140 144.9);
Tailwind
colors: {
  custom: {
    50: '#639960',
    500: '#126f21',
    950: '#000000',
  },
}
SCSS
$custom: #126f21;
$custom-light: #639960;
$custom-dark: #000000;
JSON
{
  "hex": "#126f21",
  "rgb": {
    "r": 18,
    "g": 111,
    "b": 33
  },
  "hsl": {
    "h": 129.677,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.47379,
    "c": 0.14019,
    "h": 144.9
  },
  "luminance": 0.11607
}

Semantic roles & 50–950 ramp

primary
#126F21
secondary
#A63794
accent
#39D1EF
background
#F6F9F5
surface
#EBF2EA
border
#C6CCC6
text
#060E05
muted
#7A7E79

Preview Lab

Preview with #126F21

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

Preview Lab → · Contrast checker → · Palette generator →

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