#126A2F#126A2F

#126A2F is a mid, vivid green. Relative luminance 0.106; OKLCH L 46.1% C 0.122 H 149.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#126A2F
RGBrgb(18, 106, 47)
HSLhsl(140, 71%, 24%)
HSVhsv(140, 83%, 42%)
CMYKcmyk(83%, 0%, 55.7%, 58.4%)
CIE-LABlab(38.97, -38.78, 25.98)
CIE-LCHlch(38.97, 46.68, 146.18°)
OKLaboklab(46.09% -0.1042 0.0626)
OKLCHoklch(46.09% 0.122 149)
XYZxyz(5.9161, 10.6412, 4.4309)
Luminance0.1064 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126A2F #6A124D
analogous
#216A12 #126A2F #126A5B
triadic
#126A2F #2F126A #6A2F12
tetradic
#126A2F #12216A #6A124D #6A5B12
square
#126A2F #12216A #6A124D #6A5B12
split-complementary
#126A2F #5B126A #6A1221
monochromatic
#041A0C #093618 #126A2F #1B9E46 #24D35D

Accessibility & contrast

On white

6.71
#126A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#126A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126A2F
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126A2F#FFFFFF#000000##FFFFFF
##126A2F1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B602A
Deuteranopia (green-blind)
#615933
Tritanopia (blue-blind)
#00685D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #126a2f;
/* rgb */ color: rgb(18, 106, 47);
/* oklch */ color: oklch(46.1% 0.122 149.0);
Tailwind
colors: {
  custom: {
    50: '#619569',
    500: '#126a2f',
    950: '#000000',
  },
}
SCSS
$custom: #126a2f;
$custom-light: #619569;
$custom-dark: #000000;
JSON
{
  "hex": "#126a2f",
  "rgb": {
    "r": 18,
    "g": 106,
    "b": 47
  },
  "hsl": {
    "h": 139.773,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.46091,
    "c": 0.12152,
    "h": 149
  },
  "luminance": 0.10642
}

Semantic roles & 50–950 ramp

primary
#126A2F
secondary
#A2367E
accent
#3AB3EE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060D06
muted
#7A7E7A

Preview Lab

Preview with #126A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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