#126F17#126F17

#126F17 is a mid, vivid green. Relative luminance 0.116; OKLCH L 47.3% C 0.147 H 143.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#126F17
RGBrgb(18, 111, 23)
HSLhsl(123, 72%, 25%)
HSVhsv(123, 84%, 44%)
CMYKcmyk(83.8%, 0%, 79.3%, 56.5%)
CIE-LABlab(40.51, -43.50, 38.95)
CIE-LCHlch(40.51, 58.40, 138.16°)
OKLaboklab(47.29% -0.1178 0.0877)
OKLCHoklch(47.29% 0.147 143.3)
XYZxyz(6.0881, 11.5586, 2.7206)
Luminance0.1156 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126F17 #6F126A
analogous
#3B6F12 #126F17 #126F45
triadic
#126F17 #17126F #6F1712
tetradic
#126F17 #123B6F #6F126A #6F4512
square
#126F17 #123B6F #6F126A #6F4512
split-complementary
#126F17 #45126F #6F123B
monochromatic
#041A05 #093A0C #126F17 #1BA422 #23D82D

Accessibility & contrast

On white

6.34
#126F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#126F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126F17
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126F17#FFFFFF#000000##FFFFFF
##126F171.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716404
Deuteranopia (green-blind)
#685D21
Tritanopia (blue-blind)
#006C5E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #126f17;
/* rgb */ color: rgb(18, 111, 23);
/* oklch */ color: oklch(47.3% 0.147 143.3);
Tailwind
colors: {
  custom: {
    50: '#64995b',
    500: '#126f17',
    950: '#000000',
  },
}
SCSS
$custom: #126f17;
$custom-light: #64995b;
$custom-dark: #000000;
JSON
{
  "hex": "#126f17",
  "rgb": {
    "r": 18,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 123.226,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.47289,
    "c": 0.14691,
    "h": 143.3
  },
  "luminance": 0.11559
}

Semantic roles & 50–950 ramp

primary
#126F17
secondary
#A637A0
accent
#39E5EF
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E04
muted
#7A7E79

Preview Lab

Preview with #126F17

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

Preview Lab → · Contrast checker → · Palette generator →

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