#126C26#126C26

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

Color values

HEX#126C26
RGBrgb(18, 108, 38)
HSLhsl(133, 71%, 25%)
HSVhsv(133, 83%, 42%)
CMYKcmyk(83.3%, 0%, 64.8%, 57.6%)
CIE-LABlab(39.57, -40.86, 31.37)
CIE-LCHlch(39.57, 51.52, 142.48°)
OKLaboklab(46.55% -0.11 0.0736)
OKLCHoklch(46.55% 0.132 146.2)
XYZxyz(5.9614, 10.9929, 3.6410)
Luminance0.1099 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126C26 #6C1258
analogous
#2B6C12 #126C26 #126C53
triadic
#126C26 #26126C #6C2612
tetradic
#126C26 #122B6C #6C1258 #6C5312
square
#126C26 #122B6C #6C1258 #6C5312
split-complementary
#126C26 #53126C #6C122B
monochromatic
#041A09 #093814 #126C26 #1BA038 #23D54B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##126C26#FFFFFF#000000##FFFFFF
##126C261.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)
#6E611E
Deuteranopia (green-blind)
#645B2C
Tritanopia (blue-blind)
#00695D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #126c26;
/* rgb */ color: rgb(18, 108, 38);
/* oklch */ color: oklch(46.6% 0.132 146.2);
Tailwind
colors: {
  custom: {
    50: '#629763',
    500: '#126c26',
    950: '#000000',
  },
}
SCSS
$custom: #126c26;
$custom-light: #629763;
$custom-dark: #000000;
JSON
{
  "hex": "#126c26",
  "rgb": {
    "r": 18,
    "g": 108,
    "b": 38
  },
  "hsl": {
    "h": 133.333,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46552,
    "c": 0.13237,
    "h": 146.2
  },
  "luminance": 0.10994
}

Semantic roles & 50–950 ramp

primary
#126C26
secondary
#A3368B
accent
#3AC6EE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060D05
muted
#7A7E7A

Preview Lab

Preview with #126C26

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

Preview Lab → · Contrast checker → · Palette generator →

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