#126F28#126F28

#126F28 is a mid, vivid green. Relative luminance 0.117; OKLCH L 47.5% C 0.135 H 146.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#126F28
RGBrgb(18, 111, 40)
HSLhsl(134, 72%, 25%)
HSVhsv(134, 84%, 44%)
CMYKcmyk(83.8%, 0%, 64%, 56.5%)
CIE-LABlab(40.65, -41.67, 31.62)
CIE-LCHlch(40.65, 52.31, 142.81°)
OKLaboklab(47.46% -0.1121 0.0744)
OKLCHoklch(47.46% 0.135 146.4)
XYZxyz(6.3164, 11.6499, 3.9228)
Luminance0.1165 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126F28 #6F1259
analogous
#2A6F12 #126F28 #126F57
triadic
#126F28 #28126F #6F2812
tetradic
#126F28 #122A6F #6F1259 #6F5712
square
#126F28 #122A6F #6F1259 #6F5712
split-complementary
#126F28 #57126F #6F122A
monochromatic
#041A09 #093A15 #126F28 #1BA43B #23D84E

Accessibility & contrast

On white

6.31
#126F28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#126F28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126F28
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126F28#FFFFFF#000000##FFFFFF
##126F281.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716420
Deuteranopia (green-blind)
#665D2E
Tritanopia (blue-blind)
#006C60
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #126f28;
/* rgb */ color: rgb(18, 111, 40);
/* oklch */ color: oklch(47.5% 0.135 146.4);
Tailwind
colors: {
  custom: {
    50: '#639965',
    500: '#126f28',
    950: '#000000',
  },
}
SCSS
$custom: #126f28;
$custom-light: #639965;
$custom-dark: #000000;
JSON
{
  "hex": "#126f28",
  "rgb": {
    "r": 18,
    "g": 111,
    "b": 40
  },
  "hsl": {
    "h": 134.194,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.4746,
    "c": 0.13455,
    "h": 146.4
  },
  "luminance": 0.11651
}

Semantic roles & 50–950 ramp

primary
#126F28
secondary
#A6378C
accent
#39C4EF
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060E06
muted
#7A7E7A

Preview Lab

Preview with #126F28

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

Preview Lab → · Contrast checker → · Palette generator →

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