#227B23#227B23

#227B23 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.149 H 143.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#227B23
RGBrgb(34, 123, 35)
HSLhsl(121, 57%, 31%)
HSVhsv(121, 72%, 48%)
CMYKcmyk(72.4%, 0%, 71.5%, 51.8%)
CIE-LABlab(45.12, -43.90, 38.95)
CIE-LCHlch(45.12, 58.69, 138.42°)
OKLaboklab(51.24% -0.1191 0.0893)
OKLCHoklch(51.24% 0.149 143.2)
XYZxyz(8.0455, 14.6265, 3.9890)
Luminance0.1463 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B23 #7B227A
analogous
#4D7B22 #227B23 #227B4F
triadic
#227B23 #23227B #7B2322
tetradic
#227B23 #224D7B #7B227A #7B4F22
square
#227B23 #224D7B #7B227A #7B4F22
split-complementary
#227B23 #4F227B #7B224D
monochromatic
#071B08 #154B15 #227B23 #2FAB31 #4ACD4C

Accessibility & contrast

On white

5.35
#227B23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#227B23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B23
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B23#FFFFFF#000000##FFFFFF
##227B231.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F16
Deuteranopia (green-blind)
#73682B
Tritanopia (blue-blind)
#067769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227b23;
/* rgb */ color: rgb(34, 123, 35);
/* oklch */ color: oklch(51.2% 0.149 143.2);
Tailwind
colors: {
  custom: {
    50: '#6ba263',
    500: '#227b23',
    950: '#000000',
  },
}
SCSS
$custom: #227b23;
$custom-light: #6ba263;
$custom-dark: #000000;
JSON
{
  "hex": "#227b23",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 35
  },
  "hsl": {
    "h": 120.674,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5124,
    "c": 0.14888,
    "h": 143.2
  },
  "luminance": 0.14627
}

Semantic roles & 50–950 ramp

primary
#227B23
secondary
#AE4BAD
accent
#48DEE0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #227B23

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

Preview Lab → · Contrast checker → · Palette generator →

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