#126A21#126A21

#126A21 is a mid, vivid green. Relative luminance 0.105; OKLCH L 45.9% C 0.134 H 145.2°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#126A21
RGBrgb(18, 106, 33)
HSLhsl(130, 71%, 24%)
HSVhsv(130, 83%, 42%)
CMYKcmyk(83%, 0%, 68.9%, 58.4%)
CIE-LABlab(38.80, -40.77, 32.93)
CIE-LCHlch(38.80, 52.41, 141.07°)
OKLaboklab(45.9% -0.11 0.0764)
OKLCHoklch(45.9% 0.134 145.2)
XYZxyz(5.6776, 10.5458, 3.1749)
Luminance0.1055 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126A21 #6A125B
analogous
#2F6A12 #126A21 #126A4D
triadic
#126A21 #21126A #6A2112
tetradic
#126A21 #122F6A #6A125B #6A4D12
square
#126A21 #122F6A #6A125B #6A4D12
split-complementary
#126A21 #4D126A #6A122F
monochromatic
#041A08 #093611 #126A21 #1B9E31 #24D342

Accessibility & contrast

On white

6.75
#126A21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#126A21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126A21
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126A21#FFFFFF#000000##FFFFFF
##126A211.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F18
Deuteranopia (green-blind)
#625928
Tritanopia (blue-blind)
#00675B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #126a21;
/* rgb */ color: rgb(18, 106, 33);
/* oklch */ color: oklch(45.9% 0.134 145.2);
Tailwind
colors: {
  custom: {
    50: '#629660',
    500: '#126a21',
    950: '#000000',
  },
}
SCSS
$custom: #126a21;
$custom-light: #629660;
$custom-dark: #000000;
JSON
{
  "hex": "#126a21",
  "rgb": {
    "r": 18,
    "g": 106,
    "b": 33
  },
  "hsl": {
    "h": 130.227,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45901,
    "c": 0.1339,
    "h": 145.2
  },
  "luminance": 0.10546
}

Semantic roles & 50–950 ramp

primary
#126A21
secondary
#A2368F
accent
#3ACFEE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060D05
muted
#7A7E79

Preview Lab

Preview with #126A21

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

Preview Lab → · Contrast checker → · Palette generator →

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