#126C18#126C18

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

Color values

HEX#126C18
RGBrgb(18, 108, 24)
HSLhsl(124, 71%, 25%)
HSVhsv(124, 83%, 42%)
CMYKcmyk(83.3%, 0%, 77.8%, 57.6%)
CIE-LABlab(39.44, -42.40, 37.51)
CIE-LCHlch(39.44, 56.61, 138.50°)
OKLaboklab(46.41% -0.1148 0.0849)
OKLCHoklch(46.41% 0.143 143.5)
XYZxyz(5.7765, 10.9190, 2.6671)
Luminance0.1092 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126C18 #6C1266
analogous
#396C12 #126C18 #126C45
triadic
#126C18 #18126C #6C1812
tetradic
#126C18 #12396C #6C1266 #6C4512
square
#126C18 #12396C #6C1266 #6C4512
split-complementary
#126C18 #45126C #6C1239
monochromatic
#041A06 #09380C #126C18 #1BA024 #23D52F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##126C18#FFFFFF#000000##FFFFFF
##126C181.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)
#6E6108
Deuteranopia (green-blind)
#655A21
Tritanopia (blue-blind)
#00695C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #126c18;
/* rgb */ color: rgb(18, 108, 24);
/* oklch */ color: oklch(46.4% 0.143 143.5);
Tailwind
colors: {
  custom: {
    50: '#63975b',
    500: '#126c18',
    950: '#000000',
  },
}
SCSS
$custom: #126c18;
$custom-light: #63975b;
$custom-dark: #000000;
JSON
{
  "hex": "#126c18",
  "rgb": {
    "r": 18,
    "g": 108,
    "b": 24
  },
  "hsl": {
    "h": 124,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46408,
    "c": 0.14275,
    "h": 143.5
  },
  "luminance": 0.1092
}

Semantic roles & 50–950 ramp

primary
#126C18
secondary
#A3369C
accent
#3AE2EE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E04
muted
#7A7E79

Preview Lab

Preview with #126C18

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

Preview Lab → · Contrast checker → · Palette generator →

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