#51581A#51581A

#51581A is a dark, moderate yellow. Relative luminance 0.088; OKLCH L 44.1% C 0.084 H 115.4°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#51581A
RGBrgb(81, 88, 26)
HSLhsl(67, 54%, 22%)
HSVhsv(67, 70%, 35%)
CMYKcmyk(8%, 0%, 70.5%, 65.5%)
CIE-LABlab(35.60, -12.15, 33.65)
CIE-LCHlch(35.60, 35.78, 109.85°)
OKLaboklab(44.07% -0.0362 0.0762)
OKLCHoklch(44.07% 0.084 115.4)
XYZxyz(7.0697, 8.8035, 2.3039)
Luminance0.0880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51581A #211A58
analogous
#58401A #51581A #32581A
triadic
#51581A #1A5158 #581A51
tetradic
#51581A #1A5840 #211A58 #581A32
square
#51581A #1A5840 #211A58 #581A32
split-complementary
#51581A #1A3258 #401A58
monochromatic
#161807 #26290C #51581A #7C8728 #A8B636

Accessibility & contrast

On white

7.61
#51581A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#51581A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51581A
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51581A#FFFFFF#000000##FFFFFF
##51581A1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5312
Deuteranopia (green-blind)
#5E541E
Tritanopia (blue-blind)
#56534B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #51581a;
/* rgb */ color: rgb(81, 88, 26);
/* oklch */ color: oklch(44.1% 0.084 115.4);
Tailwind
colors: {
  custom: {
    50: '#84875a',
    500: '#51581a',
    950: '#000000',
  },
}
SCSS
$custom: #51581a;
$custom-light: #84875a;
$custom-dark: #000000;
JSON
{
  "hex": "#51581a",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 26
  },
  "hsl": {
    "h": 66.774,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.44067,
    "c": 0.08433,
    "h": 115.4
  },
  "luminance": 0.08803
}

Semantic roles & 50–950 ramp

primary
#51581A
secondary
#49408E
accent
#4ADE5B
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #51581A

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

Preview Lab → · Contrast checker → · Palette generator →

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