#126A28#126A28

#126A28 is a mid, vivid green. Relative luminance 0.106; OKLCH L 46.0% C 0.128 H 146.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#126A28
RGBrgb(18, 106, 40)
HSLhsl(135, 71%, 24%)
HSVhsv(135, 83%, 42%)
CMYKcmyk(83%, 0%, 62.3%, 58.4%)
CIE-LABlab(38.88, -39.86, 29.57)
CIE-LCHlch(38.88, 49.63, 143.43°)
OKLaboklab(45.99% -0.1072 0.0699)
OKLCHoklch(45.99% 0.128 146.9)
XYZxyz(5.7860, 10.5892, 3.7460)
Luminance0.1059 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126A28 #6A1254
analogous
#286A12 #126A28 #126A54
triadic
#126A28 #28126A #6A2812
tetradic
#126A28 #12286A #6A1254 #6A5412
square
#126A28 #12286A #6A1254 #6A5412
split-complementary
#126A28 #54126A #6A1228
monochromatic
#041A0A #093614 #126A28 #1B9E3C #24D34F

Accessibility & contrast

On white

6.74
#126A28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#126A28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126A28
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126A28#FFFFFF#000000##FFFFFF
##126A281.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B6021
Deuteranopia (green-blind)
#62592D
Tritanopia (blue-blind)
#00675C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #126a28;
/* rgb */ color: rgb(18, 106, 40);
/* oklch */ color: oklch(46.0% 0.128 146.9);
Tailwind
colors: {
  custom: {
    50: '#619664',
    500: '#126a28',
    950: '#000000',
  },
}
SCSS
$custom: #126a28;
$custom-light: #619664;
$custom-dark: #000000;
JSON
{
  "hex": "#126a28",
  "rgb": {
    "r": 18,
    "g": 106,
    "b": 40
  },
  "hsl": {
    "h": 135,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45987,
    "c": 0.12801,
    "h": 146.9
  },
  "luminance": 0.1059
}

Semantic roles & 50–950 ramp

primary
#126A28
secondary
#A23687
accent
#3AC1EE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060D05
muted
#7A7E7A

Preview Lab

Preview with #126A28

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

Preview Lab → · Contrast checker → · Palette generator →

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