#227F23#227F23

#227F23 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.154 H 143.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#227F23
RGBrgb(34, 127, 35)
HSLhsl(121, 58%, 32%)
HSVhsv(121, 73%, 50%)
CMYKcmyk(73.2%, 0%, 72.4%, 50.2%)
CIE-LABlab(46.50, -45.34, 40.41)
CIE-LCHlch(46.50, 60.73, 138.29°)
OKLaboklab(52.38% -0.123 0.0923)
OKLCHoklch(52.38% 0.154 143.1)
XYZxyz(8.5519, 15.6392, 4.1578)
Luminance0.1564 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F23 #7F227E
analogous
#507F22 #227F23 #227F52
triadic
#227F23 #23227F #7F2322
tetradic
#227F23 #22507F #7F227E #7F5222
square
#227F23 #22507F #7F227E #7F5222
split-complementary
#227F23 #52227F #7F2250
monochromatic
#081E08 #154F16 #227F23 #2FAF30 #4CCF4E

Accessibility & contrast

On white

5.09
#227F23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#227F23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F23
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F23#FFFFFF#000000##FFFFFF
##227F231.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827315
Deuteranopia (green-blind)
#776B2C
Tritanopia (blue-blind)
#037B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f23;
/* rgb */ color: rgb(34, 127, 35);
/* oklch */ color: oklch(52.4% 0.154 143.1);
Tailwind
colors: {
  custom: {
    50: '#6ca563',
    500: '#227f23',
    950: '#000000',
  },
}
SCSS
$custom: #227f23;
$custom-light: #6ca563;
$custom-dark: #000000;
JSON
{
  "hex": "#227f23",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 35
  },
  "hsl": {
    "h": 120.645,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52384,
    "c": 0.15382,
    "h": 143.1
  },
  "luminance": 0.1564
}

Semantic roles & 50–950 ramp

primary
#227F23
secondary
#B24BB0
accent
#47DFE1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #227F23

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

Preview Lab → · Contrast checker → · Palette generator →

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