#126C17#126C17

#126C17 is a mid, vivid green. Relative luminance 0.109; OKLCH L 46.4% C 0.143 H 143.4°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#126C17
RGBrgb(18, 108, 23)
HSLhsl(123, 71%, 25%)
HSVhsv(123, 83%, 42%)
CMYKcmyk(83.3%, 0%, 78.7%, 57.6%)
CIE-LABlab(39.44, -42.48, 37.89)
CIE-LCHlch(39.44, 56.93, 138.27°)
OKLaboklab(46.4% -0.1151 0.0855)
OKLCHoklch(46.4% 0.143 143.4)
XYZxyz(5.7663, 10.9149, 2.6133)
Luminance0.1092 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126C17 #6C1267
analogous
#3A6C12 #126C17 #126C44
triadic
#126C17 #17126C #6C1712
tetradic
#126C17 #123A6C #6C1267 #6C4412
square
#126C17 #123A6C #6C1267 #6C4412
split-complementary
#126C17 #44126C #6C123A
monochromatic
#041A06 #09380C #126C17 #1BA022 #23D52D

Accessibility & contrast

On white

6.60
#126C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#126C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126C17
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126C17#FFFFFF#000000##FFFFFF
##126C171.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6106
Deuteranopia (green-blind)
#655A20
Tritanopia (blue-blind)
#00695C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #126c17;
/* rgb */ color: rgb(18, 108, 23);
/* oklch */ color: oklch(46.4% 0.143 143.4);
Tailwind
colors: {
  custom: {
    50: '#63975b',
    500: '#126c17',
    950: '#000000',
  },
}
SCSS
$custom: #126c17;
$custom-light: #63975b;
$custom-dark: #000000;
JSON
{
  "hex": "#126c17",
  "rgb": {
    "r": 18,
    "g": 108,
    "b": 23
  },
  "hsl": {
    "h": 123.333,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.464,
    "c": 0.14337,
    "h": 143.4
  },
  "luminance": 0.10916
}

Semantic roles & 50–950 ramp

primary
#126C17
secondary
#A3369D
accent
#3AE4EE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E04
muted
#7A7E79

Preview Lab

Preview with #126C17

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

Preview Lab → · Contrast checker → · Palette generator →

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