#228031#228031

#228031 is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.8% C 0.144 H 145.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#228031
RGBrgb(34, 128, 49)
HSLhsl(130, 58%, 32%)
HSVhsv(130, 73%, 50%)
CMYKcmyk(73.4%, 0%, 61.7%, 49.8%)
CIE-LABlab(46.97, -44.11, 34.54)
CIE-LCHlch(46.97, 56.03, 141.94°)
OKLaboklab(52.82% -0.1191 0.0814)
OKLCHoklch(52.82% 0.144 145.6)
XYZxyz(8.9326, 15.9992, 5.5225)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228031 #802271
analogous
#428022 #228031 #228060
triadic
#228031 #312280 #803122
tetradic
#228031 #224280 #802271 #806022
square
#228031 #224280 #802271 #806022
split-complementary
#228031 #602280 #802242
monochromatic
#081F0C #15501E #228031 #2FB044 #4DD062

Accessibility & contrast

On white

5.00
#228031 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#228031 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228031
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228031#FFFFFF#000000##FFFFFF
##2280311.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827429
Deuteranopia (green-blind)
#776C37
Tritanopia (blue-blind)
#007D6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #228031;
/* rgb */ color: rgb(34, 128, 49);
/* oklch */ color: oklch(52.8% 0.144 145.6);
Tailwind
colors: {
  custom: {
    50: '#6ca66c',
    500: '#228031',
    950: '#000000',
  },
}
SCSS
$custom: #228031;
$custom-light: #6ca66c;
$custom-dark: #000000;
JSON
{
  "hex": "#228031",
  "rgb": {
    "r": 34,
    "g": 128,
    "b": 49
  },
  "hsl": {
    "h": 129.574,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.52821,
    "c": 0.14424,
    "h": 145.6
  },
  "luminance": 0.16
}

Semantic roles & 50–950 ramp

primary
#228031
secondary
#B24BA2
accent
#47C9E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #228031

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

Preview Lab → · Contrast checker → · Palette generator →

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