#126228#126228

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

Color values

HEX#126228
RGBrgb(18, 98, 40)
HSLhsl(137, 69%, 23%)
HSVhsv(137, 82%, 38%)
CMYKcmyk(81.6%, 0%, 59.2%, 61.6%)
CIE-LABlab(36.02, -36.86, 26.19)
CIE-LCHlch(36.02, 45.22, 144.61°)
OKLaboklab(43.61% -0.0991 0.0626)
OKLCHoklch(43.61% 0.117 147.7)
XYZxyz(4.9997, 9.0166, 3.4839)
Luminance0.0902 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126228 #62124C
analogous
#246212 #126228 #126250
triadic
#126228 #281262 #622812
tetradic
#126228 #122462 #62124C #625012
square
#126228 #122462 #62124C #625012
split-complementary
#126228 #501262 #621224
monochromatic
#051A0B #092E13 #126228 #1B963D #25C952

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #126228;
/* rgb */ color: rgb(18, 98, 40);
/* oklch */ color: oklch(43.6% 0.117 147.7);
Tailwind
colors: {
  custom: {
    50: '#5f8f64',
    500: '#126228',
    950: '#000000',
  },
}
SCSS
$custom: #126228;
$custom-light: #5f8f64;
$custom-dark: #000000;
JSON
{
  "hex": "#126228",
  "rgb": {
    "r": 18,
    "g": 98,
    "b": 40
  },
  "hsl": {
    "h": 136.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43613,
    "c": 0.11722,
    "h": 147.7
  },
  "luminance": 0.09017
}

Semantic roles & 50–950 ramp

primary
#126228
secondary
#9A367E
accent
#3CBBEC
background
#F6F8F6
surface
#EBF0EB
border
#C6CBC6
text
#050C05
muted
#7A7D7A

Preview Lab

Preview with #126228

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

Preview Lab → · Contrast checker → · Palette generator →

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