#51A227#51A227

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

Color values

HEX#51A227
RGBrgb(81, 162, 39)
HSLhsl(100, 61%, 39%)
HSVhsv(100, 76%, 64%)
CMYKcmyk(50%, 0%, 75.9%, 36.5%)
CIE-LABlab(59.65, -46.14, 52.69)
CIE-LCHlch(59.65, 70.04, 131.21°)
OKLaboklab(63.68% -0.1279 0.1181)
OKLCHoklch(63.68% 0.174 137.3)
XYZxyz(16.6794, 27.7353, 6.3936)
Luminance0.2774 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51A227 #7827A2
analogous
#8FA227 #51A227 #27A23A
triadic
#51A227 #2751A2 #A22751
tetradic
#51A227 #278FA2 #7827A2 #A23A27
square
#51A227 #278FA2 #7827A2 #A23A27
split-complementary
#51A227 #3A27A2 #A2278F
monochromatic
#203F0F #38711B #51A227 #6BCF37 #90DB69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51A227#FFFFFF#000000##000000
##51A2271.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)
#A7940C
Deuteranopia (green-blind)
#9D8D34
Tritanopia (blue-blind)
#4C9C8B
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #51a227;
/* rgb */ color: rgb(81, 162, 39);
/* oklch */ color: oklch(63.7% 0.174 137.3);
Tailwind
colors: {
  custom: {
    50: '#8abe6a',
    500: '#51a227',
    950: '#000000',
  },
}
SCSS
$custom: #51a227;
$custom-light: #8abe6a;
$custom-dark: #000000;
JSON
{
  "hex": "#51a227",
  "rgb": {
    "r": 81,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 99.512,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.6368,
    "c": 0.17411,
    "h": 137.3
  },
  "luminance": 0.27736
}

Semantic roles & 50–950 ramp

primary
#51A227
secondary
#A164C1
accent
#43E4AD
background
#F8FBF6
surface
#F0F7EC
border
#CBD0C7
text
#0C1207
muted
#7D817A

Preview Lab

Preview with #51A227

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

Preview Lab → · Contrast checker → · Palette generator →

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