#228C2A#228C2A

#228C2A is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.1% C 0.165 H 143.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#228C2A
RGBrgb(34, 140, 42)
HSLhsl(125, 61%, 34%)
HSVhsv(125, 76%, 55%)
CMYKcmyk(75.7%, 0%, 70%, 45.1%)
CIE-LABlab(50.99, -49.19, 42.22)
CIE-LCHlch(50.99, 64.82, 139.36°)
OKLaboklab(56.13% -0.1331 0.097)
OKLCHoklch(56.13% 0.165 143.9)
XYZxyz(10.4550, 19.2622, 5.3570)
Luminance0.1926 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C2A #8C2284
analogous
#4F8C22 #228C2A #228C5F
triadic
#228C2A #2A228C #8C2A22
tetradic
#228C2A #224F8C #8C2284 #8C5F22
square
#228C2A #224F8C #8C2284 #8C5F22
split-complementary
#228C2A #5F228C #8C224F
monochromatic
#0A2A0C #165B1B #228C2A #2EBD39 #53D55D

Accessibility & contrast

On white

4.33
#228C2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#228C2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228C2A
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228C2A#FFFFFF#000000##000000
##228C2A1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E1C
Deuteranopia (green-blind)
#837633
Tritanopia (blue-blind)
#008878
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228c2a;
/* rgb */ color: rgb(34, 140, 42);
/* oklch */ color: oklch(56.1% 0.165 143.9);
Tailwind
colors: {
  custom: {
    50: '#6faf69',
    500: '#228c2a',
    950: '#000000',
  },
}
SCSS
$custom: #228c2a;
$custom-light: #6faf69;
$custom-dark: #000000;
JSON
{
  "hex": "#228c2a",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 42
  },
  "hsl": {
    "h": 124.528,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56131,
    "c": 0.16474,
    "h": 143.9
  },
  "luminance": 0.19263
}

Semantic roles & 50–950 ramp

primary
#228C2A
secondary
#B951B1
accent
#44D8E4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #228C2A

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

Preview Lab → · Contrast checker → · Palette generator →

#228C2A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva