#51791F#51791F

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

Color values

HEX#51791F
RGBrgb(81, 121, 31)
HSLhsl(87, 59%, 30%)
HSVhsv(87, 74%, 47%)
CMYKcmyk(33.1%, 0%, 74.4%, 52.5%)
CIE-LABlab(46.34, -28.97, 42.47)
CIE-LCHlch(46.34, 51.41, 124.30°)
OKLaboklab(52.76% -0.0821 0.0955)
OKLCHoklch(52.76% 0.126 130.7)
XYZxyz(10.4780, 15.5227, 3.7402)
Luminance0.1552 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51791F #471F79
analogous
#79741F #51791F #24791F
triadic
#51791F #1F5179 #791F51
tetradic
#51791F #1F7974 #471F79 #791F24
square
#51791F #1F7974 #471F79 #791F24
split-complementary
#51791F #1F2479 #741F79
monochromatic
#101806 #304813 #51791F #72AA2B #91CF43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51791F#FFFFFF#000000##FFFFFF
##51791F1.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)
#7F700F
Deuteranopia (green-blind)
#796D27
Tritanopia (blue-blind)
#537467
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #51791f;
/* rgb */ color: rgb(81, 121, 31);
/* oklch */ color: oklch(52.8% 0.126 130.7);
Tailwind
colors: {
  custom: {
    50: '#85a061',
    500: '#51791f',
    950: '#000000',
  },
}
SCSS
$custom: #51791f;
$custom-light: #85a061;
$custom-dark: #000000;
JSON
{
  "hex": "#51791f",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 86.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52765,
    "c": 0.12592,
    "h": 130.7
  },
  "luminance": 0.15523
}

Semantic roles & 50–950 ramp

primary
#51791F
secondary
#7447AC
accent
#45E28B
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51791F

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

Preview Lab → · Contrast checker → · Palette generator →

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