#126E28#126E28

#126E28 is a mid, vivid green. Relative luminance 0.114; OKLCH L 47.2% C 0.133 H 146.5°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#126E28
RGBrgb(18, 110, 40)
HSLhsl(134, 72%, 25%)
HSVhsv(134, 84%, 43%)
CMYKcmyk(83.6%, 0%, 63.6%, 56.9%)
CIE-LABlab(40.30, -41.31, 31.22)
CIE-LCHlch(40.30, 51.78, 142.93°)
OKLaboklab(47.17% -0.1112 0.0735)
OKLCHoklch(47.17% 0.133 146.5)
XYZxyz(6.2079, 11.4329, 3.8867)
Luminance0.1143 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126E28 #6E1258
analogous
#2A6E12 #126E28 #126E56
triadic
#126E28 #28126E #6E2812
tetradic
#126E28 #122A6E #6E1258 #6E5612
square
#126E28 #122A6E #6E1258 #6E5612
split-complementary
#126E28 #56126E #6E122A
monochromatic
#041A0A #093915 #126E28 #1BA33B #23D74E

Accessibility & contrast

On white

6.39
#126E28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#126E28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126E28
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126E28#FFFFFF#000000##FFFFFF
##126E281.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706320
Deuteranopia (green-blind)
#665C2E
Tritanopia (blue-blind)
#006B5F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #126e28;
/* rgb */ color: rgb(18, 110, 40);
/* oklch */ color: oklch(47.2% 0.133 146.5);
Tailwind
colors: {
  custom: {
    50: '#629965',
    500: '#126e28',
    950: '#000000',
  },
}
SCSS
$custom: #126e28;
$custom-light: #629965;
$custom-dark: #000000;
JSON
{
  "hex": "#126e28",
  "rgb": {
    "r": 18,
    "g": 110,
    "b": 40
  },
  "hsl": {
    "h": 134.348,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.47166,
    "c": 0.13325,
    "h": 146.5
  },
  "luminance": 0.11434
}

Semantic roles & 50–950 ramp

primary
#126E28
secondary
#A5378B
accent
#39C3EF
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060E06
muted
#7A7E7A

Preview Lab

Preview with #126E28

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

Preview Lab → · Contrast checker → · Palette generator →

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