#51B31A#51B31A

#51B31A is a light, vivid yellow-green. Relative luminance 0.341; OKLCH L 68.1% C 0.200 H 137.7°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#51B31A
RGBrgb(81, 179, 26)
HSLhsl(98, 75%, 40%)
HSVhsv(98, 85%, 70%)
CMYKcmyk(54.7%, 0%, 85.5%, 29.8%)
CIE-LABlab(65.01, -53.29, 61.46)
CIE-LCHlch(65.01, 81.35, 130.93°)
OKLaboklab(68.08% -0.1478 0.1346)
OKLCHoklch(68.08% 0.2 137.7)
XYZxyz(19.6992, 34.0625, 6.5137)
Luminance0.3406 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51B31A #7C1AB3
analogous
#9EB31A #51B31A #1AB32F
triadic
#51B31A #1A51B3 #B31A51
tetradic
#51B31A #1A9EB3 #7C1AB3 #B32F1A
square
#51B31A #1A9EB3 #7C1AB3 #B32F1A
split-complementary
#51B31A #2F1AB3 #B31A9E
monochromatic
#21480A #397E12 #51B31A #6CE02A #91E860

Accessibility & contrast

On white

2.69
#51B31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#51B31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #51B31A
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51B31A#FFFFFF#000000##000000
##51B31A1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#AD9B2F
Tritanopia (blue-blind)
#49AC98
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #51b31a;
/* rgb */ color: rgb(81, 179, 26);
/* oklch */ color: oklch(68.1% 0.200 137.7);
Tailwind
colors: {
  custom: {
    50: '#8dca67',
    500: '#51b31a',
    950: '#000000',
  },
}
SCSS
$custom: #51b31a;
$custom-light: #8dca67;
$custom-dark: #000000;
JSON
{
  "hex": "#51b31a",
  "rgb": {
    "r": 81,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 98.431,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.6808,
    "c": 0.19993,
    "h": 137.7
  },
  "luminance": 0.34064
}

Semantic roles & 50–950 ramp

primary
#51B31A
secondary
#A45DCC
accent
#37F1AE
background
#F9FCF6
surface
#F1F8EB
border
#CBD1C6
text
#0D1307
muted
#7E827A

Preview Lab

Preview with #51B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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