#52A228#52A228

#52A228 is a light, vivid yellow-green. Relative luminance 0.278; OKLCH L 63.7% C 0.173 H 137.2°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#52A228
RGBrgb(82, 162, 40)
HSLhsl(99, 60%, 40%)
HSVhsv(99, 75%, 64%)
CMYKcmyk(49.4%, 0%, 75.3%, 36.5%)
CIE-LABlab(59.70, -45.77, 52.40)
CIE-LCHlch(59.70, 69.57, 131.13°)
OKLaboklab(63.73% -0.1269 0.1176)
OKLCHoklch(63.73% 0.173 137.2)
XYZxyz(16.7825, 27.7865, 6.4861)
Luminance0.2779 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52A228 #7828A2
analogous
#8FA228 #52A228 #28A23B
triadic
#52A228 #2852A2 #A22852
tetradic
#52A228 #288FA2 #7828A2 #A23B28
square
#52A228 #288FA2 #7828A2 #A23B28
split-complementary
#52A228 #3B28A2 #A2288F
monochromatic
#204010 #39711C #52A228 #6CCE39 #91DA6A

Accessibility & contrast

On white

3.20
#52A228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#52A228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #52A228
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52A228#FFFFFF#000000##000000
##52A2281.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7940F
Deuteranopia (green-blind)
#9D8D35
Tritanopia (blue-blind)
#4D9C8B
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #52a228;
/* rgb */ color: rgb(82, 162, 40);
/* oklch */ color: oklch(63.7% 0.173 137.2);
Tailwind
colors: {
  custom: {
    50: '#8abe6b',
    500: '#52a228',
    950: '#000000',
  },
}
SCSS
$custom: #52a228;
$custom-light: #8abe6b;
$custom-dark: #000000;
JSON
{
  "hex": "#52a228",
  "rgb": {
    "r": 82,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 99.344,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63731,
    "c": 0.17304,
    "h": 137.2
  },
  "luminance": 0.27788
}

Semantic roles & 50–950 ramp

primary
#52A228
secondary
#A165C1
accent
#44E4AD
background
#F8FBF6
surface
#F0F7EC
border
#CBD0C7
text
#0D1207
muted
#7D817A

Preview Lab

Preview with #52A228

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

Preview Lab → · Contrast checker → · Palette generator →

#52A228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva