#227938#227938

#227938 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.128 H 148.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#227938
RGBrgb(34, 121, 56)
HSLhsl(135, 56%, 30%)
HSVhsv(135, 72%, 47%)
CMYKcmyk(71.9%, 0%, 53.7%, 52.5%)
CIE-LABlab(44.66, -40.44, 28.19)
CIE-LCHlch(44.66, 49.29, 145.12°)
OKLaboklab(50.93% -0.1089 0.068)
OKLCHoklch(50.93% 0.128 148)
XYZxyz(8.2103, 14.2995, 6.0680)
Luminance0.1430 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227938 #792263
analogous
#387922 #227938 #227963
triadic
#227938 #382279 #793822
tetradic
#227938 #223879 #792263 #796322
square
#227938 #223879 #792263 #796322
split-complementary
#227938 #632279 #792238
monochromatic
#07190C #154922 #227938 #2FA94E #49CC6A

Accessibility & contrast

On white

5.44
#227938 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#227938 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227938
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227938#FFFFFF#000000##FFFFFF
##2279381.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6E32
Deuteranopia (green-blind)
#70673D
Tritanopia (blue-blind)
#00766A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227938;
/* rgb */ color: rgb(34, 121, 56);
/* oklch */ color: oklch(50.9% 0.128 148.0);
Tailwind
colors: {
  custom: {
    50: '#6aa170',
    500: '#227938',
    950: '#000000',
  },
}
SCSS
$custom: #227938;
$custom-light: #6aa170;
$custom-dark: #000000;
JSON
{
  "hex": "#227938",
  "rgb": {
    "r": 34,
    "g": 121,
    "b": 56
  },
  "hsl": {
    "h": 135.172,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.50934,
    "c": 0.12845,
    "h": 148
  },
  "luminance": 0.143
}

Semantic roles & 50–950 ramp

primary
#227938
secondary
#AC4B93
accent
#48B9DF
background
#F6FAF6
surface
#ECF3EC
border
#C7CDC7
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #227938

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

Preview Lab → · Contrast checker → · Palette generator →

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