#51501B#51501B

#51501B is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.0% C 0.073 H 108.2°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#51501B
RGBrgb(81, 80, 27)
HSLhsl(59, 50%, 21%)
HSVhsv(59, 67%, 32%)
CMYKcmyk(0%, 1.2%, 66.7%, 68.2%)
CIE-LABlab(33.06, -7.43, 30.48)
CIE-LCHlch(33.06, 31.37, 103.69°)
OKLaboklab(42.04% -0.0228 0.0696)
OKLCHoklch(42.04% 0.073 108.2)
XYZxyz(6.4600, 7.5660, 2.1568)
Luminance0.0757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51501B #1B1C51
analogous
#51351B #51501B #37511B
triadic
#51501B #1B5150 #501B51
tetradic
#51501B #1B5135 #1B1C51 #511B37
square
#51501B #1B5135 #1B1C51 #511B37
split-complementary
#51501B #1B3751 #351B51
monochromatic
#171708 #23230C #51501B #7F7D2A #ADAB3A

Accessibility & contrast

On white

8.36
#51501B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#51501B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51501B
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51501B#FFFFFF#000000##FFFFFF
##51501B1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D15
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#574B45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #51501b;
/* rgb */ color: rgb(81, 80, 27);
/* oklch */ color: oklch(42.0% 0.073 108.2);
Tailwind
colors: {
  custom: {
    50: '#84805a',
    500: '#51501b',
    950: '#000000',
  },
}
SCSS
$custom: #51501b;
$custom-light: #84805a;
$custom-dark: #000000;
JSON
{
  "hex": "#51501b",
  "rgb": {
    "r": 81,
    "g": 80,
    "b": 27
  },
  "hsl": {
    "h": 58.889,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42039,
    "c": 0.07326,
    "h": 108.2
  },
  "luminance": 0.07566
}

Semantic roles & 50–950 ramp

primary
#51501B
secondary
#414287
accent
#51DA4E
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #51501B

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

Preview Lab → · Contrast checker → · Palette generator →

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