#51791C#51791C

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

Color values

HEX#51791C
RGBrgb(81, 121, 28)
HSLhsl(86, 62%, 29%)
HSVhsv(86, 77%, 47%)
CMYKcmyk(33.1%, 0%, 76.9%, 52.5%)
CIE-LABlab(46.32, -29.17, 43.61)
CIE-LCHlch(46.32, 52.47, 123.78°)
OKLaboklab(52.74% -0.0829 0.0974)
OKLCHoklch(52.74% 0.128 130.4)
XYZxyz(10.4402, 15.5076, 3.5416)
Luminance0.1551 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51791C #441C79
analogous
#79731C #51791C #23791C
triadic
#51791C #1C5179 #791C51
tetradic
#51791C #1C7973 #441C79 #791C23
square
#51791C #1C7973 #441C79 #791C23
split-complementary
#51791C #1C2379 #731C79
monochromatic
#111906 #304710 #51791C #72AB28 #92D23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51791C#FFFFFF#000000##FFFFFF
##51791C1.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)
#7F7009
Deuteranopia (green-blind)
#796D25
Tritanopia (blue-blind)
#537467
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #51791c;
/* rgb */ color: rgb(81, 121, 28);
/* oklch */ color: oklch(52.7% 0.128 130.4);
Tailwind
colors: {
  custom: {
    50: '#86a05f',
    500: '#51791c',
    950: '#000000',
  },
}
SCSS
$custom: #51791c;
$custom-light: #86a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#51791c",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 85.806,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52742,
    "c": 0.12788,
    "h": 130.4
  },
  "luminance": 0.15508
}

Semantic roles & 50–950 ramp

primary
#51791C
secondary
#7144AD
accent
#42E588
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51791C

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

Preview Lab → · Contrast checker → · Palette generator →

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