#51501A#51501A

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

Color values

HEX#51501A
RGBrgb(81, 80, 26)
HSLhsl(59, 51%, 21%)
HSVhsv(59, 68%, 32%)
CMYKcmyk(0%, 1.2%, 67.9%, 68.2%)
CIE-LABlab(33.05, -7.50, 30.96)
CIE-LCHlch(33.05, 31.86, 103.62°)
OKLaboklab(42.03% -0.0232 0.0705)
OKLCHoklch(42.03% 0.074 108.2)
XYZxyz(6.4487, 7.5614, 2.0969)
Luminance0.0756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51501A #1A1B51
analogous
#51341A #51501A #36511A
triadic
#51501A #1A5150 #501A51
tetradic
#51501A #1A5134 #1A1B51 #511A36
square
#51501A #1A5134 #1A1B51 #511A36
split-complementary
#51501A #1A3651 #341A51
monochromatic
#171707 #23220B #51501A #7F7E29 #AEAC38

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51501A#FFFFFF#000000##FFFFFF
##51501A1.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)
#574D13
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#574B45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #51501a;
/* rgb */ color: rgb(81, 80, 26);
/* oklch */ color: oklch(42.0% 0.074 108.2);
Tailwind
colors: {
  custom: {
    50: '#848059',
    500: '#51501a',
    950: '#000000',
  },
}
SCSS
$custom: #51501a;
$custom-light: #848059;
$custom-dark: #000000;
JSON
{
  "hex": "#51501a",
  "rgb": {
    "r": 81,
    "g": 80,
    "b": 26
  },
  "hsl": {
    "h": 58.909,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42028,
    "c": 0.07419,
    "h": 108.2
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#51501A
secondary
#404187
accent
#50DB4D
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #51501A

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

Preview Lab → · Contrast checker → · Palette generator →

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