#126A2C#126A2C

#126A2C is a mid, vivid green. Relative luminance 0.106; OKLCH L 46.0% C 0.124 H 148.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#126A2C
RGBrgb(18, 106, 44)
HSLhsl(138, 71%, 24%)
HSVhsv(138, 83%, 42%)
CMYKcmyk(83%, 0%, 58.5%, 58.4%)
CIE-LABlab(38.93, -39.27, 27.54)
CIE-LCHlch(38.93, 47.96, 144.95°)
OKLaboklab(46.04% -0.1055 0.0658)
OKLCHoklch(46.04% 0.124 148)
XYZxyz(5.8576, 10.6178, 4.1231)
Luminance0.1062 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126A2C #6A1250
analogous
#246A12 #126A2C #126A58
triadic
#126A2C #2C126A #6A2C12
tetradic
#126A2C #12246A #6A1250 #6A5812
square
#126A2C #12246A #6A1250 #6A5812
split-complementary
#126A2C #58126A #6A1224
monochromatic
#041A0B #093616 #126A2C #1B9E42 #24D357

Accessibility & contrast

On white

6.72
#126A2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#126A2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126A2C
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126A2C#FFFFFF#000000##FFFFFF
##126A2C1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B6026
Deuteranopia (green-blind)
#615931
Tritanopia (blue-blind)
#00685C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #126a2c;
/* rgb */ color: rgb(18, 106, 44);
/* oklch */ color: oklch(46.0% 0.124 148.0);
Tailwind
colors: {
  custom: {
    50: '#619667',
    500: '#126a2c',
    950: '#000000',
  },
}
SCSS
$custom: #126a2c;
$custom-light: #619667;
$custom-dark: #000000;
JSON
{
  "hex": "#126a2c",
  "rgb": {
    "r": 18,
    "g": 106,
    "b": 44
  },
  "hsl": {
    "h": 137.727,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.46044,
    "c": 0.12436,
    "h": 148
  },
  "luminance": 0.10619
}

Semantic roles & 50–950 ramp

primary
#126A2C
secondary
#A23682
accent
#3AB9EE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060D06
muted
#7A7E7A

Preview Lab

Preview with #126A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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