#126227#126227

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

Color values

HEX#126227
RGBrgb(18, 98, 39)
HSLhsl(136, 69%, 23%)
HSVhsv(136, 82%, 38%)
CMYKcmyk(81.6%, 0%, 60.2%, 61.6%)
CIE-LABlab(36.00, -37.02, 26.71)
CIE-LCHlch(36.00, 45.65, 144.19°)
OKLaboklab(43.6% -0.0996 0.0636)
OKLCHoklch(43.6% 0.118 147.4)
XYZxyz(4.9830, 9.0099, 3.3955)
Luminance0.0901 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126227 #62124D
analogous
#256212 #126227 #12624F
triadic
#126227 #271262 #622712
tetradic
#126227 #122562 #62124D #624F12
square
#126227 #122562 #62124D #624F12
split-complementary
#126227 #4F1262 #621225
monochromatic
#051A0A #092E12 #126227 #1B963C #25C950

Accessibility & contrast

On white

7.49
#126227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #126227
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126227#FFFFFF#000000##FFFFFF
##1262271.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #126227;
/* rgb */ color: rgb(18, 98, 39);
/* oklch */ color: oklch(43.6% 0.118 147.4);
Tailwind
colors: {
  custom: {
    50: '#5f8f63',
    500: '#126227',
    950: '#000000',
  },
}
SCSS
$custom: #126227;
$custom-light: #5f8f63;
$custom-dark: #000000;
JSON
{
  "hex": "#126227",
  "rgb": {
    "r": 18,
    "g": 98,
    "b": 39
  },
  "hsl": {
    "h": 135.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43598,
    "c": 0.11816,
    "h": 147.4
  },
  "luminance": 0.0901
}

Semantic roles & 50–950 ramp

primary
#126227
secondary
#9A3680
accent
#3CBEEC
background
#F6F8F5
surface
#EBF0EA
border
#C6CBC6
text
#050C05
muted
#7A7D79

Preview Lab

Preview with #126227

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

Preview Lab → · Contrast checker → · Palette generator →

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