#228238#228238

#228238 is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.5% C 0.141 H 147.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#228238
RGBrgb(34, 130, 56)
HSLhsl(134, 59%, 32%)
HSVhsv(134, 74%, 51%)
CMYKcmyk(73.8%, 0%, 56.9%, 49%)
CIE-LABlab(47.74, -43.88, 31.93)
CIE-LCHlch(47.74, 54.27, 143.96°)
OKLaboklab(53.48% -0.1182 0.0763)
OKLCHoklch(53.48% 0.141 147.2)
XYZxyz(9.3554, 16.5898, 6.4497)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228238 #82226C
analogous
#3C8222 #228238 #228268
triadic
#228238 #382282 #823822
tetradic
#228238 #223C82 #82226C #826822
square
#228238 #223C82 #82226C #826822
split-complementary
#228238 #682282 #82223C
monochromatic
#09210E #155123 #228238 #2FB34D #4ED16C

Accessibility & contrast

On white

4.86
#228238 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#228238 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228238
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228238#FFFFFF#000000##FFFFFF
##2282381.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847631
Deuteranopia (green-blind)
#786E3E
Tritanopia (blue-blind)
#007F71
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #228238;
/* rgb */ color: rgb(34, 130, 56);
/* oklch */ color: oklch(53.5% 0.141 147.2);
Tailwind
colors: {
  custom: {
    50: '#6ca771',
    500: '#228238',
    950: '#000000',
  },
}
SCSS
$custom: #228238;
$custom-light: #6ca771;
$custom-dark: #000000;
JSON
{
  "hex": "#228238",
  "rgb": {
    "r": 34,
    "g": 130,
    "b": 56
  },
  "hsl": {
    "h": 133.75,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53481,
    "c": 0.1407,
    "h": 147.2
  },
  "luminance": 0.16591
}

Semantic roles & 50–950 ramp

primary
#228238
secondary
#B44C9C
accent
#46BEE2
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#081008
muted
#7A7F7B

Preview Lab

Preview with #228238

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

Preview Lab → · Contrast checker → · Palette generator →

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