#228151#228151

#228151 is a mid, moderate green. Relative luminance 0.166; OKLCH L 53.7% C 0.115 H 156.4°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#228151
RGBrgb(34, 129, 81)
HSLhsl(150, 58%, 32%)
HSVhsv(150, 74%, 51%)
CMYKcmyk(73.6%, 0%, 37.2%, 49.4%)
CIE-LABlab(47.79, -38.98, 18.37)
CIE-LCHlch(47.79, 43.09, 154.76°)
OKLaboklab(53.66% -0.1055 0.0461)
OKLCHoklch(53.66% 0.115 156.4)
XYZxyz(9.9942, 16.6335, 10.4669)
Luminance0.1663 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228151 #812252
analogous
#238122 #228151 #228181
triadic
#228151 #512281 #815122
tetradic
#228151 #222381 #812252 #818122
square
#228151 #222381 #812252 #818122
split-complementary
#228151 #812281 #812223
monochromatic
#082014 #155133 #228151 #2FB16F #4DD08E

Accessibility & contrast

On white

4.85
#228151 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#228151 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228151
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228151#FFFFFF#000000##FFFFFF
##2281511.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80764E
Deuteranopia (green-blind)
#746E54
Tritanopia (blue-blind)
#008075
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #228151;
/* rgb */ color: rgb(34, 129, 81);
/* oklch */ color: oklch(53.7% 0.115 156.4);
Tailwind
colors: {
  custom: {
    50: '#6ba682',
    500: '#228151',
    950: '#000000',
  },
}
SCSS
$custom: #228151;
$custom-light: #6ba682;
$custom-dark: #000000;
JSON
{
  "hex": "#228151",
  "rgb": {
    "r": 34,
    "g": 129,
    "b": 81
  },
  "hsl": {
    "h": 149.684,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53656,
    "c": 0.11513,
    "h": 156.4
  },
  "luminance": 0.16635
}

Semantic roles & 50–950 ramp

primary
#228151
secondary
#B34B80
accent
#4695E1
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#080F0A
muted
#7A7F7C

Preview Lab

Preview with #228151

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

Preview Lab → · Contrast checker → · Palette generator →

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