#51791A#51791A

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

Color values

HEX#51791A
RGBrgb(81, 121, 26)
HSLhsl(85, 65%, 29%)
HSVhsv(85, 79%, 47%)
CMYKcmyk(33.1%, 0%, 78.5%, 52.5%)
CIE-LABlab(46.31, -29.29, 44.33)
CIE-LCHlch(46.31, 53.13, 123.46°)
OKLaboklab(52.73% -0.0834 0.0986)
OKLCHoklch(52.73% 0.129 130.2)
XYZxyz(10.4171, 15.4983, 3.4197)
Luminance0.1550 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51791A #421A79
analogous
#79721A #51791A #22791A
triadic
#51791A #1A5179 #791A51
tetradic
#51791A #1A7972 #421A79 #791A22
square
#51791A #1A7972 #421A79 #791A22
split-complementary
#51791A #1A2279 #721A79
monochromatic
#111905 #2F470F #51791A #73AB25 #93D439

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #51791a;
/* rgb */ color: rgb(81, 121, 26);
/* oklch */ color: oklch(52.7% 0.129 130.2);
Tailwind
colors: {
  custom: {
    50: '#86a05e',
    500: '#51791a',
    950: '#000000',
  },
}
SCSS
$custom: #51791a;
$custom-light: #86a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#51791a",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 85.263,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52728,
    "c": 0.12909,
    "h": 130.2
  },
  "luminance": 0.15499
}

Semantic roles & 50–950 ramp

primary
#51791A
secondary
#6F41AD
accent
#40E887
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51791A

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

Preview Lab → · Contrast checker → · Palette generator →

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