#126C28#126C28

#126C28 is a mid, vivid green. Relative luminance 0.110; OKLCH L 46.6% C 0.131 H 146.7°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#126C28
RGBrgb(18, 108, 40)
HSLhsl(135, 71%, 25%)
HSVhsv(135, 83%, 42%)
CMYKcmyk(83.3%, 0%, 63%, 57.6%)
CIE-LABlab(39.59, -40.59, 30.40)
CIE-LCHlch(39.59, 50.71, 143.17°)
OKLaboklab(46.58% -0.1092 0.0717)
OKLCHoklch(46.58% 0.131 146.7)
XYZxyz(5.9946, 11.0062, 3.8155)
Luminance0.1101 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126C28 #6C1256
analogous
#296C12 #126C28 #126C55
triadic
#126C28 #28126C #6C2812
tetradic
#126C28 #12296C #6C1256 #6C5512
square
#126C28 #12296C #6C1256 #6C5512
split-complementary
#126C28 #55126C #6C1229
monochromatic
#041A0A #093815 #126C28 #1BA03B #23D54F

Accessibility & contrast

On white

6.56
#126C28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#126C28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126C28
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126C28#FFFFFF#000000##FFFFFF
##126C281.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6121
Deuteranopia (green-blind)
#645B2E
Tritanopia (blue-blind)
#00695D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #126c28;
/* rgb */ color: rgb(18, 108, 40);
/* oklch */ color: oklch(46.6% 0.131 146.7);
Tailwind
colors: {
  custom: {
    50: '#629764',
    500: '#126c28',
    950: '#000000',
  },
}
SCSS
$custom: #126c28;
$custom-light: #629764;
$custom-dark: #000000;
JSON
{
  "hex": "#126c28",
  "rgb": {
    "r": 18,
    "g": 108,
    "b": 40
  },
  "hsl": {
    "h": 134.667,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46578,
    "c": 0.13064,
    "h": 146.7
  },
  "luminance": 0.11007
}

Semantic roles & 50–950 ramp

primary
#126C28
secondary
#A33689
accent
#3AC2EE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060D05
muted
#7A7E7A

Preview Lab

Preview with #126C28

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

Preview Lab → · Contrast checker → · Palette generator →

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