#228531#228531

#228531 is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.2% C 0.151 H 145.4°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#228531
RGBrgb(34, 133, 49)
HSLhsl(129, 59%, 33%)
HSVhsv(129, 74%, 52%)
CMYKcmyk(74.4%, 0%, 63.2%, 47.8%)
CIE-LABlab(48.68, -45.94, 36.50)
CIE-LCHlch(48.68, 58.67, 141.53°)
OKLaboklab(54.24% -0.124 0.0857)
OKLCHoklch(54.24% 0.151 145.4)
XYZxyz(9.6009, 17.3358, 5.7453)
Luminance0.1734 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228531 #852276
analogous
#448522 #228531 #228562
triadic
#228531 #312285 #853122
tetradic
#228531 #224485 #852276 #856222
square
#228531 #224485 #852276 #856222
split-complementary
#228531 #622285 #852244
monochromatic
#09240D #16541F #228531 #2EB643 #4FD263

Accessibility & contrast

On white

4.70
#228531 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#228531 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228531
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228531#FFFFFF#000000##FFFFFF
##2285311.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877828
Deuteranopia (green-blind)
#7C7138
Tritanopia (blue-blind)
#008273
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #228531;
/* rgb */ color: rgb(34, 133, 49);
/* oklch */ color: oklch(54.2% 0.151 145.4);
Tailwind
colors: {
  custom: {
    50: '#6da96c',
    500: '#228531',
    950: '#000000',
  },
}
SCSS
$custom: #228531;
$custom-light: #6da96c;
$custom-dark: #000000;
JSON
{
  "hex": "#228531",
  "rgb": {
    "r": 34,
    "g": 133,
    "b": 49
  },
  "hsl": {
    "h": 129.091,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54235,
    "c": 0.1507,
    "h": 145.4
  },
  "luminance": 0.17337
}

Semantic roles & 50–950 ramp

primary
#228531
secondary
#B64DA6
accent
#45CBE2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #228531

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

Preview Lab → · Contrast checker → · Palette generator →

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