#51A228#51A228

#51A228 is a light, vivid yellow-green. Relative luminance 0.277; OKLCH L 63.7% C 0.174 H 137.4°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#51A228
RGBrgb(81, 162, 40)
HSLhsl(100, 60%, 40%)
HSVhsv(100, 75%, 64%)
CMYKcmyk(50%, 0%, 75.3%, 36.5%)
CIE-LABlab(59.65, -46.07, 52.35)
CIE-LCHlch(59.65, 69.74, 131.35°)
OKLaboklab(63.69% -0.1277 0.1175)
OKLCHoklch(63.69% 0.174 137.4)
XYZxyz(16.6961, 27.7420, 6.4820)
Luminance0.2774 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51A228 #7928A2
analogous
#8EA228 #51A228 #28A23C
triadic
#51A228 #2851A2 #A22851
tetradic
#51A228 #288EA2 #7928A2 #A23C28
square
#51A228 #288EA2 #7928A2 #A23C28
split-complementary
#51A228 #3C28A2 #A2288E
monochromatic
#204010 #38711C #51A228 #6BCE39 #90DA6A

Accessibility & contrast

On white

3.21
#51A228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#51A228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51A228
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51A228#FFFFFF#000000##000000
##51A2281.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51a228;
/* rgb */ color: rgb(81, 162, 40);
/* oklch */ color: oklch(63.7% 0.174 137.4);
Tailwind
colors: {
  custom: {
    50: '#8abe6b',
    500: '#51a228',
    950: '#000000',
  },
}
SCSS
$custom: #51a228;
$custom-light: #8abe6b;
$custom-dark: #000000;
JSON
{
  "hex": "#51a228",
  "rgb": {
    "r": 81,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 99.836,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63687,
    "c": 0.17354,
    "h": 137.4
  },
  "luminance": 0.27743
}

Semantic roles & 50–950 ramp

primary
#51A228
secondary
#A265C1
accent
#44E4AE
background
#F8FBF6
surface
#F0F7EC
border
#CBD0C7
text
#0C1207
muted
#7D817A

Preview Lab

Preview with #51A228

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

Preview Lab → · Contrast checker → · Palette generator →

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