#51791D#51791D

#51791D is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.7% C 0.127 H 130.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#51791D
RGBrgb(81, 121, 29)
HSLhsl(86, 61%, 29%)
HSVhsv(86, 76%, 47%)
CMYKcmyk(33.1%, 0%, 76%, 52.5%)
CIE-LABlab(46.33, -29.11, 43.24)
CIE-LCHlch(46.33, 52.12, 123.95°)
OKLaboklab(52.75% -0.0826 0.0968)
OKLCHoklch(52.75% 0.127 130.5)
XYZxyz(10.4524, 15.5124, 3.6056)
Luminance0.1551 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51791D #451D79
analogous
#79731D #51791D #23791D
triadic
#51791D #1D5179 #791D51
tetradic
#51791D #1D7973 #451D79 #791D23
square
#51791D #1D7973 #451D79 #791D23
split-complementary
#51791D #1D2379 #731D79
monochromatic
#111906 #304811 #51791D #72AA29 #92D13F

Accessibility & contrast

On white

5.12
#51791D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#51791D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51791D
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51791D#FFFFFF#000000##FFFFFF
##51791D1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700B
Deuteranopia (green-blind)
#796D26
Tritanopia (blue-blind)
#537467
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #51791d;
/* rgb */ color: rgb(81, 121, 29);
/* oklch */ color: oklch(52.7% 0.127 130.5);
Tailwind
colors: {
  custom: {
    50: '#85a060',
    500: '#51791d',
    950: '#000000',
  },
}
SCSS
$custom: #51791d;
$custom-light: #85a060;
$custom-dark: #000000;
JSON
{
  "hex": "#51791d",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 29
  },
  "hsl": {
    "h": 86.087,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52749,
    "c": 0.12724,
    "h": 130.5
  },
  "luminance": 0.15513
}

Semantic roles & 50–950 ramp

primary
#51791D
secondary
#7245AD
accent
#43E489
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51791D

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

Preview Lab → · Contrast checker → · Palette generator →

#51791D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva