#51A51B#51A51B

#51A51B is a light, vivid yellow-green. Relative luminance 0.287; OKLCH L 64.4% C 0.184 H 136.7°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#51A51B
RGBrgb(81, 165, 27)
HSLhsl(97, 72%, 38%)
HSVhsv(97, 84%, 65%)
CMYKcmyk(50.9%, 0%, 83.6%, 35.3%)
CIE-LABlab(60.55, -47.99, 57.23)
CIE-LCHlch(60.55, 74.69, 129.98°)
OKLaboklab(64.4% -0.1336 0.1258)
OKLCHoklch(64.4% 0.184 136.7)
XYZxyz(17.0458, 28.7375, 5.6854)
Luminance0.2874 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51A51B #6F1BA5
analogous
#96A51B #51A51B #1BA52A
triadic
#51A51B #1B51A5 #A51B51
tetradic
#51A51B #1B96A5 #6F1BA5 #A52A1B
square
#51A51B #1B96A5 #6F1BA5 #A52A1B
split-complementary
#51A51B #2A1BA5 #A51B96
monochromatic
#1D3C0A #377012 #51A51B #6BDA24 #8EE357

Accessibility & contrast

On white

3.11
#51A51B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#51A51B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51A51B
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51A51B#FFFFFF#000000##000000
##51A51B1.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9600
Deuteranopia (green-blind)
#A08F2D
Tritanopia (blue-blind)
#4C9F8C
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #51a51b;
/* rgb */ color: rgb(81, 165, 27);
/* oklch */ color: oklch(64.4% 0.184 136.7);
Tailwind
colors: {
  custom: {
    50: '#8bc065',
    500: '#51a51b',
    950: '#000000',
  },
}
SCSS
$custom: #51a51b;
$custom-light: #8bc065;
$custom-dark: #000000;
JSON
{
  "hex": "#51a51b",
  "rgb": {
    "r": 81,
    "g": 165,
    "b": 27
  },
  "hsl": {
    "h": 96.522,
    "s": 71.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.64402,
    "c": 0.18351,
    "h": 136.7
  },
  "luminance": 0.28739
}

Semantic roles & 50–950 ramp

primary
#51A51B
secondary
#9A55C7
accent
#39EFA8
background
#F9FBF6
surface
#F1F7EB
border
#CBD0C6
text
#0D1206
muted
#7E817A

Preview Lab

Preview with #51A51B

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

Preview Lab → · Contrast checker → · Palette generator →

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