#51791B#51791B

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

Color values

HEX#51791B
RGBrgb(81, 121, 27)
HSLhsl(86, 64%, 29%)
HSVhsv(86, 78%, 47%)
CMYKcmyk(33.1%, 0%, 77.7%, 52.5%)
CIE-LABlab(46.32, -29.23, 43.97)
CIE-LCHlch(46.32, 52.80, 123.62°)
OKLaboklab(52.74% -0.0831 0.098)
OKLCHoklch(52.74% 0.129 130.3)
XYZxyz(10.4285, 15.5029, 3.4796)
Luminance0.1550 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51791B #431B79
analogous
#79721B #51791B #22791B
triadic
#51791B #1B5179 #791B51
tetradic
#51791B #1B7972 #431B79 #791B22
square
#51791B #1B7972 #431B79 #791B22
split-complementary
#51791B #1B2279 #721B79
monochromatic
#111906 #304710 #51791B #72AB26 #93D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51791B#FFFFFF#000000##FFFFFF
##51791B1.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)
#7F7007
Deuteranopia (green-blind)
#796D24
Tritanopia (blue-blind)
#537467
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #51791b;
/* rgb */ color: rgb(81, 121, 27);
/* oklch */ color: oklch(52.7% 0.129 130.3);
Tailwind
colors: {
  custom: {
    50: '#86a05f',
    500: '#51791b',
    950: '#000000',
  },
}
SCSS
$custom: #51791b;
$custom-light: #86a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#51791b",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 85.532,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52735,
    "c": 0.1285,
    "h": 130.3
  },
  "luminance": 0.15503
}

Semantic roles & 50–950 ramp

primary
#51791B
secondary
#7043AD
accent
#41E788
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51791B

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

Preview Lab → · Contrast checker → · Palette generator →

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