#227D23#227D23

#227D23 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.151 H 143.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#227D23
RGBrgb(34, 125, 35)
HSLhsl(121, 57%, 31%)
HSVhsv(121, 73%, 49%)
CMYKcmyk(72.8%, 0%, 72%, 51%)
CIE-LABlab(45.81, -44.62, 39.68)
CIE-LCHlch(45.81, 59.71, 138.35°)
OKLaboklab(51.81% -0.1211 0.0908)
OKLCHoklch(51.81% 0.151 143.1)
XYZxyz(8.2962, 15.1278, 4.0725)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D23 #7D227C
analogous
#4E7D22 #227D23 #227D50
triadic
#227D23 #23227D #7D2322
tetradic
#227D23 #224E7D #7D227C #7D5022
square
#227D23 #224E7D #7D227C #7D5022
split-complementary
#227D23 #50227D #7D224E
monochromatic
#081D08 #154D16 #227D23 #2FAD30 #4BCE4D

Accessibility & contrast

On white

5.22
#227D23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#227D23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D23
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D23#FFFFFF#000000##FFFFFF
##227D231.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807115
Deuteranopia (green-blind)
#756A2C
Tritanopia (blue-blind)
#04796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227d23;
/* rgb */ color: rgb(34, 125, 35);
/* oklch */ color: oklch(51.8% 0.151 143.1);
Tailwind
colors: {
  custom: {
    50: '#6ca463',
    500: '#227d23',
    950: '#000000',
  },
}
SCSS
$custom: #227d23;
$custom-light: #6ca463;
$custom-dark: #000000;
JSON
{
  "hex": "#227d23",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 120.659,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.51812,
    "c": 0.15136,
    "h": 143.1
  },
  "luminance": 0.15129
}

Semantic roles & 50–950 ramp

primary
#227D23
secondary
#B04BAF
accent
#47DFE0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #227D23

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

Preview Lab → · Contrast checker → · Palette generator →

#227D23 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva