#126229#126229

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

Color values

HEX#126229
RGBrgb(18, 98, 41)
HSLhsl(137, 69%, 23%)
HSVhsv(137, 82%, 38%)
CMYKcmyk(81.6%, 0%, 58.2%, 61.6%)
CIE-LABlab(36.03, -36.71, 25.67)
CIE-LCHlch(36.03, 44.79, 145.04°)
OKLaboklab(43.63% -0.0987 0.0615)
OKLCHoklch(43.63% 0.116 148.1)
XYZxyz(5.0170, 9.0235, 3.5747)
Luminance0.0902 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126229 #62124B
analogous
#236212 #126229 #126251
triadic
#126229 #291262 #622912
tetradic
#126229 #122362 #62124B #625112
square
#126229 #122362 #62124B #625112
split-complementary
#126229 #511262 #621223
monochromatic
#051A0B #092E13 #126229 #1B963F #25C954

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##126229#FFFFFF#000000##FFFFFF
##1262291.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)
#635924
Deuteranopia (green-blind)
#5A522D
Tritanopia (blue-blind)
#006055
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #126229;
/* rgb */ color: rgb(18, 98, 41);
/* oklch */ color: oklch(43.6% 0.116 148.1);
Tailwind
colors: {
  custom: {
    50: '#5f8f64',
    500: '#126229',
    950: '#000000',
  },
}
SCSS
$custom: #126229;
$custom-light: #5f8f64;
$custom-dark: #000000;
JSON
{
  "hex": "#126229",
  "rgb": {
    "r": 18,
    "g": 98,
    "b": 41
  },
  "hsl": {
    "h": 137.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43628,
    "c": 0.11626,
    "h": 148.1
  },
  "luminance": 0.09024
}

Semantic roles & 50–950 ramp

primary
#126229
secondary
#9A367D
accent
#3CB9EC
background
#F6F8F6
surface
#EBF0EB
border
#C6CBC6
text
#050C05
muted
#7A7D7A

Preview Lab

Preview with #126229

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

Preview Lab → · Contrast checker → · Palette generator →

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