#51751B#51751B

#51751B is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.7% C 0.123 H 129.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#51751B
RGBrgb(81, 117, 27)
HSLhsl(84, 63%, 28%)
HSVhsv(84, 77%, 46%)
CMYKcmyk(30.8%, 0%, 76.9%, 54.1%)
CIE-LABlab(45.01, -27.32, 42.71)
CIE-LCHlch(45.01, 50.70, 122.61°)
OKLaboklab(51.67% -0.0779 0.0953)
OKLCHoklch(51.67% 0.123 129.3)
XYZxyz(9.9524, 14.5508, 3.3209)
Luminance0.1455 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51751B #3F1B75
analogous
#756C1B #51751B #24751B
triadic
#51751B #1B5175 #751B51
tetradic
#51751B #1B756C #3F1B75 #751B24
square
#51751B #1B756C #3F1B75 #751B24
split-complementary
#51751B #1B2475 #6C1B75
monochromatic
#111906 #2F4310 #51751B #73A726 #94D139

Accessibility & contrast

On white

5.37
#51751B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#51751B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51751B
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51751B#FFFFFF#000000##FFFFFF
##51751B1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C09
Deuteranopia (green-blind)
#766A24
Tritanopia (blue-blind)
#547064
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #51751b;
/* rgb */ color: rgb(81, 117, 27);
/* oklch */ color: oklch(51.7% 0.123 129.3);
Tailwind
colors: {
  custom: {
    50: '#859d5e',
    500: '#51751b',
    950: '#000000',
  },
}
SCSS
$custom: #51751b;
$custom-light: #859d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#51751b",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 84,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51674,
    "c": 0.12312,
    "h": 129.3
  },
  "luminance": 0.14551
}

Semantic roles & 50–950 ramp

primary
#51751B
secondary
#6C42A9
accent
#42E684
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51751B

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

Preview Lab → · Contrast checker → · Palette generator →

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