#126A23#126A23

#126A23 is a mid, vivid green. Relative luminance 0.106; OKLCH L 45.9% C 0.132 H 145.6°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#126A23
RGBrgb(18, 106, 35)
HSLhsl(132, 71%, 24%)
HSVhsv(132, 83%, 42%)
CMYKcmyk(83%, 0%, 67%, 58.4%)
CIE-LABlab(38.82, -40.53, 32.00)
CIE-LCHlch(38.82, 51.64, 141.71°)
OKLaboklab(45.92% -0.1092 0.0747)
OKLCHoklch(45.92% 0.132 145.6)
XYZxyz(5.7064, 10.5573, 3.3268)
Luminance0.1056 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126A23 #6A1259
analogous
#2D6A12 #126A23 #126A4F
triadic
#126A23 #23126A #6A2312
tetradic
#126A23 #122D6A #6A1259 #6A4F12
square
#126A23 #122D6A #6A1259 #6A4F12
split-complementary
#126A23 #4F126A #6A122D
monochromatic
#041A09 #093612 #126A23 #1B9E34 #24D346

Accessibility & contrast

On white

6.75
#126A23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#126A23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126A23
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126A23#FFFFFF#000000##FFFFFF
##126A231.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F1B
Deuteranopia (green-blind)
#625929
Tritanopia (blue-blind)
#00675B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #126a23;
/* rgb */ color: rgb(18, 106, 35);
/* oklch */ color: oklch(45.9% 0.132 145.6);
Tailwind
colors: {
  custom: {
    50: '#629661',
    500: '#126a23',
    950: '#000000',
  },
}
SCSS
$custom: #126a23;
$custom-light: #629661;
$custom-dark: #000000;
JSON
{
  "hex": "#126a23",
  "rgb": {
    "r": 18,
    "g": 106,
    "b": 35
  },
  "hsl": {
    "h": 131.591,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45924,
    "c": 0.13229,
    "h": 145.6
  },
  "luminance": 0.10558
}

Semantic roles & 50–950 ramp

primary
#126A23
secondary
#A2368D
accent
#3ACBEE
background
#F6F9F5
surface
#EBF2EA
border
#C6CCC6
text
#060D05
muted
#7A7E79

Preview Lab

Preview with #126A23

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

Preview Lab → · Contrast checker → · Palette generator →

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