#126226#126226

#126226 is a dark, moderate green. Relative luminance 0.090; OKLCH L 43.6% C 0.119 H 147.1°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#126226
RGBrgb(18, 98, 38)
HSLhsl(135, 69%, 23%)
HSVhsv(135, 82%, 38%)
CMYKcmyk(81.6%, 0%, 61.2%, 61.6%)
CIE-LABlab(35.99, -37.17, 27.22)
CIE-LCHlch(35.99, 46.07, 143.78°)
OKLaboklab(43.58% -0.1 0.0647)
OKLCHoklch(43.58% 0.119 147.1)
XYZxyz(4.9666, 9.0033, 3.3094)
Luminance0.0900 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126226 #62124E
analogous
#266212 #126226 #12624E
triadic
#126226 #261262 #622612
tetradic
#126226 #122662 #62124E #624E12
square
#126226 #122662 #62124E #624E12
split-complementary
#126226 #4E1262 #621226
monochromatic
#051A0A #092E12 #126226 #1B963A #25C94E

Accessibility & contrast

On white

7.50
#126226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#126226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #126226
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126226#FFFFFF#000000##FFFFFF
##1262261.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635820
Deuteranopia (green-blind)
#5A522B
Tritanopia (blue-blind)
#006055
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #126226;
/* rgb */ color: rgb(18, 98, 38);
/* oklch */ color: oklch(43.6% 0.119 147.1);
Tailwind
colors: {
  custom: {
    50: '#5f8f62',
    500: '#126226',
    950: '#000000',
  },
}
SCSS
$custom: #126226;
$custom-light: #5f8f62;
$custom-dark: #000000;
JSON
{
  "hex": "#126226",
  "rgb": {
    "r": 18,
    "g": 98,
    "b": 38
  },
  "hsl": {
    "h": 135,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43583,
    "c": 0.11908,
    "h": 147.1
  },
  "luminance": 0.09004
}

Semantic roles & 50–950 ramp

primary
#126226
secondary
#9A3681
accent
#3CC0EC
background
#F6F8F5
surface
#EBF0EA
border
#C6CBC6
text
#050C05
muted
#7A7D79

Preview Lab

Preview with #126226

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

Preview Lab → · Contrast checker → · Palette generator →

#126226 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva