#51B315#51B315

#51B315 is a light, highly saturated yellow-green. Relative luminance 0.340; OKLCH L 68.1% C 0.202 H 137.5°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#51B315
RGBrgb(81, 179, 21)
HSLhsl(97, 79%, 39%)
HSVhsv(97, 88%, 70%)
CMYKcmyk(54.7%, 0%, 88.3%, 29.8%)
CIE-LABlab(65.00, -53.48, 62.52)
CIE-LCHlch(65.00, 82.27, 130.54°)
OKLaboklab(68.06% -0.1485 0.1362)
OKLCHoklch(68.06% 0.202 137.5)
XYZxyz(19.6481, 34.0421, 6.2447)
Luminance0.3404 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51B315 #7715B3
analogous
#A0B315 #51B315 #15B328
triadic
#51B315 #1551B3 #B31551
tetradic
#51B315 #15A0B3 #7715B3 #B32815
square
#51B315 #15A0B3 #7715B3 #B32815
split-complementary
#51B315 #2815B3 #B315A0
monochromatic
#1F4508 #387C0F #51B315 #6BE520 #8FEB57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51B315#FFFFFF#000000##000000
##51B3151.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)
#AD9B2C
Tritanopia (blue-blind)
#49AC98
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #51b315;
/* rgb */ color: rgb(81, 179, 21);
/* oklch */ color: oklch(68.1% 0.202 137.5);
Tailwind
colors: {
  custom: {
    50: '#8dca66',
    500: '#51b315',
    950: '#000000',
  },
}
SCSS
$custom: #51b315;
$custom-light: #8dca66;
$custom-dark: #000000;
JSON
{
  "hex": "#51b315",
  "rgb": {
    "r": 81,
    "g": 179,
    "b": 21
  },
  "hsl": {
    "h": 97.215,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.68062,
    "c": 0.20153,
    "h": 137.5
  },
  "luminance": 0.34044
}

Semantic roles & 50–950 ramp

primary
#51B315
secondary
#A056CE
accent
#32F5AB
background
#F9FCF6
surface
#F2F8EB
border
#CCD1C6
text
#0D1307
muted
#7E827A

Preview Lab

Preview with #51B315

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

Preview Lab → · Contrast checker → · Palette generator →

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