#126A2D#126A2D

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

Color values

HEX#126A2D
RGBrgb(18, 106, 45)
HSLhsl(138, 71%, 24%)
HSVhsv(138, 83%, 42%)
CMYKcmyk(83%, 0%, 57.5%, 58.4%)
CIE-LABlab(38.94, -39.11, 27.03)
CIE-LCHlch(38.94, 47.54, 145.35°)
OKLaboklab(46.06% -0.1051 0.0648)
OKLCHoklch(46.06% 0.123 148.3)
XYZxyz(5.8767, 10.6254, 4.2233)
Luminance0.1063 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126A2D #6A124F
analogous
#236A12 #126A2D #126A59
triadic
#126A2D #2D126A #6A2D12
tetradic
#126A2D #12236A #6A124F #6A5912
square
#126A2D #12236A #6A124F #6A5912
split-complementary
#126A2D #59126A #6A1223
monochromatic
#041A0B #093617 #126A2D #1B9E43 #24D359

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##126A2D#FFFFFF#000000##FFFFFF
##126A2D1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #126a2d;
/* rgb */ color: rgb(18, 106, 45);
/* oklch */ color: oklch(46.1% 0.123 148.3);
Tailwind
colors: {
  custom: {
    50: '#619667',
    500: '#126a2d',
    950: '#000000',
  },
}
SCSS
$custom: #126a2d;
$custom-light: #619667;
$custom-dark: #000000;
JSON
{
  "hex": "#126a2d",
  "rgb": {
    "r": 18,
    "g": 106,
    "b": 45
  },
  "hsl": {
    "h": 138.409,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.4606,
    "c": 0.12342,
    "h": 148.3
  },
  "luminance": 0.10626
}

Semantic roles & 50–950 ramp

primary
#126A2D
secondary
#A23681
accent
#3AB7EE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060D06
muted
#7A7E7A

Preview Lab

Preview with #126A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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