#228528#228528

#228528 is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.1% C 0.158 H 143.8°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#228528
RGBrgb(34, 133, 40)
HSLhsl(124, 59%, 33%)
HSVhsv(124, 74%, 52%)
CMYKcmyk(74.4%, 0%, 69.9%, 47.8%)
CIE-LABlab(48.60, -46.96, 40.51)
CIE-LCHlch(48.60, 62.02, 139.22°)
OKLaboklab(54.14% -0.1272 0.0932)
OKLCHoklch(54.14% 0.158 143.8)
XYZxyz(9.4296, 17.2673, 4.8430)
Luminance0.1727 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228528 #85227F
analogous
#4E8522 #228528 #228559
triadic
#228528 #282285 #852822
tetradic
#228528 #224E85 #85227F #855922
square
#228528 #224E85 #85227F #855922
split-complementary
#228528 #592285 #85224E
monochromatic
#09240B #165419 #228528 #2EB637 #4FD257

Accessibility & contrast

On white

4.72
#228528 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#228528 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228528
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228528#FFFFFF#000000##FFFFFF
##2285281.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88781B
Deuteranopia (green-blind)
#7C7031
Tritanopia (blue-blind)
#008172
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #228528;
/* rgb */ color: rgb(34, 133, 40);
/* oklch */ color: oklch(54.1% 0.158 143.8);
Tailwind
colors: {
  custom: {
    50: '#6ea967',
    500: '#228528',
    950: '#000000',
  },
}
SCSS
$custom: #228528;
$custom-light: #6ea967;
$custom-dark: #000000;
JSON
{
  "hex": "#228528",
  "rgb": {
    "r": 34,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 123.636,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54137,
    "c": 0.15766,
    "h": 143.8
  },
  "luminance": 0.17268
}

Semantic roles & 50–950 ramp

primary
#228528
secondary
#B64DAF
accent
#45D9E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #228528

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

Preview Lab → · Contrast checker → · Palette generator →

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