#228126#228126

#228126 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.0% C 0.154 H 143.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#228126
RGBrgb(34, 129, 38)
HSLhsl(123, 58%, 32%)
HSVhsv(123, 74%, 51%)
CMYKcmyk(73.6%, 0%, 70.5%, 49.4%)
CIE-LABlab(47.21, -45.75, 39.89)
CIE-LCHlch(47.21, 60.70, 138.92°)
OKLaboklab(52.98% -0.124 0.0916)
OKLCHoklch(52.98% 0.154 143.5)
XYZxyz(8.8592, 16.1796, 4.4894)
Luminance0.1618 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228126 #81227D
analogous
#4E8122 #228126 #228156
triadic
#228126 #262281 #812622
tetradic
#228126 #224E81 #81227D #815622
square
#228126 #224E81 #81227D #815622
split-complementary
#228126 #562281 #81224E
monochromatic
#082009 #155118 #228126 #2FB134 #4DD053

Accessibility & contrast

On white

4.96
#228126 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#228126 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228126
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228126#FFFFFF#000000##FFFFFF
##2281261.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847519
Deuteranopia (green-blind)
#796D2F
Tritanopia (blue-blind)
#007D6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #228126;
/* rgb */ color: rgb(34, 129, 38);
/* oklch */ color: oklch(53.0% 0.154 143.5);
Tailwind
colors: {
  custom: {
    50: '#6da765',
    500: '#228126',
    950: '#000000',
  },
}
SCSS
$custom: #228126;
$custom-light: #6da765;
$custom-dark: #000000;
JSON
{
  "hex": "#228126",
  "rgb": {
    "r": 34,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 122.526,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.52982,
    "c": 0.15418,
    "h": 143.5
  },
  "luminance": 0.16181
}

Semantic roles & 50–950 ramp

primary
#228126
secondary
#B34BAF
accent
#46DBE1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #228126

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

Preview Lab → · Contrast checker → · Palette generator →

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