#126F31#126F31

#126F31 is a mid, vivid green. Relative luminance 0.117; OKLCH L 47.6% C 0.126 H 149.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#126F31
RGBrgb(18, 111, 49)
HSLhsl(140, 72%, 25%)
HSVhsv(140, 84%, 44%)
CMYKcmyk(83.8%, 0%, 55.9%, 56.5%)
CIE-LABlab(40.77, -40.34, 27.10)
CIE-LCHlch(40.77, 48.59, 146.11°)
OKLaboklab(47.59% -0.1083 0.0652)
OKLCHoklch(47.59% 0.126 149)
XYZxyz(6.4877, 11.7184, 4.8251)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126F31 #6F1250
analogous
#216F12 #126F31 #126F5F
triadic
#126F31 #31126F #6F3112
tetradic
#126F31 #12216F #6F1250 #6F5F12
square
#126F31 #12216F #6F1250 #6F5F12
split-complementary
#126F31 #5F126F #6F1221
monochromatic
#041A0C #093A1A #126F31 #1BA448 #23D85F

Accessibility & contrast

On white

6.28
#126F31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#126F31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126F31
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126F31#FFFFFF#000000##FFFFFF
##126F311.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70642B
Deuteranopia (green-blind)
#665D36
Tritanopia (blue-blind)
#006D61
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #126f31;
/* rgb */ color: rgb(18, 111, 49);
/* oklch */ color: oklch(47.6% 0.126 149.0);
Tailwind
colors: {
  custom: {
    50: '#62996b',
    500: '#126f31',
    950: '#000000',
  },
}
SCSS
$custom: #126f31;
$custom-light: #62996b;
$custom-dark: #000000;
JSON
{
  "hex": "#126f31",
  "rgb": {
    "r": 18,
    "g": 111,
    "b": 49
  },
  "hsl": {
    "h": 140,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.47588,
    "c": 0.12641,
    "h": 149
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#126F31
secondary
#A63781
accent
#39B2EF
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060E06
muted
#7A7E7A

Preview Lab

Preview with #126F31

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

Preview Lab → · Contrast checker → · Palette generator →

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