#126D17#126D17

#126D17 is a mid, vivid green. Relative luminance 0.111; OKLCH L 46.7% C 0.145 H 143.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#126D17
RGBrgb(18, 109, 23)
HSLhsl(123, 72%, 25%)
HSVhsv(123, 83%, 43%)
CMYKcmyk(83.5%, 0%, 78.9%, 57.3%)
CIE-LABlab(39.79, -42.82, 38.25)
CIE-LCHlch(39.79, 57.42, 138.23°)
OKLaboklab(46.7% -0.116 0.0862)
OKLCHoklch(46.7% 0.145 143.4)
XYZxyz(5.8724, 11.1270, 2.6487)
Luminance0.1113 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126D17 #6D1268
analogous
#3A6D12 #126D17 #126D45
triadic
#126D17 #17126D #6D1712
tetradic
#126D17 #123A6D #6D1268 #6D4512
square
#126D17 #123A6D #6D1268 #6D4512
split-complementary
#126D17 #45126D #6D123A
monochromatic
#041A06 #09380C #126D17 #1BA222 #23D62D

Accessibility & contrast

On white

6.51
#126D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#126D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126D17
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126D17#FFFFFF#000000##FFFFFF
##126D171.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6205
Deuteranopia (green-blind)
#665B20
Tritanopia (blue-blind)
#006A5D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #126d17;
/* rgb */ color: rgb(18, 109, 23);
/* oklch */ color: oklch(46.7% 0.145 143.4);
Tailwind
colors: {
  custom: {
    50: '#63985b',
    500: '#126d17',
    950: '#000000',
  },
}
SCSS
$custom: #126d17;
$custom-light: #63985b;
$custom-dark: #000000;
JSON
{
  "hex": "#126d17",
  "rgb": {
    "r": 18,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 123.297,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46697,
    "c": 0.14455,
    "h": 143.4
  },
  "luminance": 0.11128
}

Semantic roles & 50–950 ramp

primary
#126D17
secondary
#A4379E
accent
#39E4EE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E04
muted
#7A7E79

Preview Lab

Preview with #126D17

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

Preview Lab → · Contrast checker → · Palette generator →

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