#51B31C#51B31C

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

Color values

HEX#51B31C
RGBrgb(81, 179, 28)
HSLhsl(99, 73%, 41%)
HSVhsv(99, 84%, 70%)
CMYKcmyk(54.7%, 0%, 84.4%, 29.8%)
CIE-LABlab(65.02, -53.21, 60.98)
CIE-LCHlch(65.02, 80.93, 131.11°)
OKLaboklab(68.09% -0.1475 0.1339)
OKLCHoklch(68.09% 0.199 137.8)
XYZxyz(19.7224, 34.0718, 6.6356)
Luminance0.3407 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51B31C #7E1CB3
analogous
#9DB31C #51B31C #1CB332
triadic
#51B31C #1C51B3 #B31C51
tetradic
#51B31C #1C9DB3 #7E1CB3 #B3321C
square
#51B31C #1C9DB3 #7E1CB3 #B3321C
split-complementary
#51B31C #321CB3 #B31C9D
monochromatic
#21490B #397E14 #51B31C #6CDE2E #91E763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #51b31c;
/* rgb */ color: rgb(81, 179, 28);
/* oklch */ color: oklch(68.1% 0.199 137.8);
Tailwind
colors: {
  custom: {
    50: '#8dca68',
    500: '#51b31c',
    950: '#000000',
  },
}
SCSS
$custom: #51b31c;
$custom-light: #8dca68;
$custom-dark: #000000;
JSON
{
  "hex": "#51b31c",
  "rgb": {
    "r": 81,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 98.94,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.68089,
    "c": 0.19921,
    "h": 137.8
  },
  "luminance": 0.34073
}

Semantic roles & 50–950 ramp

primary
#51B31C
secondary
#A55FCB
accent
#38F0AF
background
#F9FCF6
surface
#F1F8EB
border
#CBD1C6
text
#0D1307
muted
#7E827A

Preview Lab

Preview with #51B31C

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

Preview Lab → · Contrast checker → · Palette generator →

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