#126E1B#126E1B

#126E1B is a mid, vivid green. Relative luminance 0.114; OKLCH L 47.0% C 0.143 H 143.9°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#126E1B
RGBrgb(18, 110, 27)
HSLhsl(126, 72%, 25%)
HSVhsv(126, 84%, 43%)
CMYKcmyk(83.6%, 0%, 75.5%, 56.9%)
CIE-LABlab(40.18, -42.81, 37.05)
CIE-LCHlch(40.18, 56.62, 139.13°)
OKLaboklab(47.03% -0.1158 0.0843)
OKLCHoklch(47.03% 0.143 143.9)
XYZxyz(6.0228, 11.3589, 2.9118)
Luminance0.1136 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126E1B #6E1265
analogous
#376E12 #126E1B #126E49
triadic
#126E1B #1B126E #6E1B12
tetradic
#126E1B #12376E #6E1265 #6E4912
square
#126E1B #12376E #6E1265 #6E4912
split-complementary
#126E1B #49126E #6E1237
monochromatic
#041A06 #09390E #126E1B #1BA328 #23D735

Accessibility & contrast

On white

6.42
#126E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#126E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126E1B
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126E1B#FFFFFF#000000##FFFFFF
##126E1B1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70630D
Deuteranopia (green-blind)
#665C24
Tritanopia (blue-blind)
#006B5E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #126e1b;
/* rgb */ color: rgb(18, 110, 27);
/* oklch */ color: oklch(47.0% 0.143 143.9);
Tailwind
colors: {
  custom: {
    50: '#63995d',
    500: '#126e1b',
    950: '#000000',
  },
}
SCSS
$custom: #126e1b;
$custom-light: #63995d;
$custom-dark: #000000;
JSON
{
  "hex": "#126e1b",
  "rgb": {
    "r": 18,
    "g": 110,
    "b": 27
  },
  "hsl": {
    "h": 125.87,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.47026,
    "c": 0.14322,
    "h": 143.9
  },
  "luminance": 0.1136
}

Semantic roles & 50–950 ramp

primary
#126E1B
secondary
#A5379A
accent
#39DDEF
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E04
muted
#7A7E79

Preview Lab

Preview with #126E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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