#51580F#51580F

#51580F is a dark, moderate yellow. Relative luminance 0.088; OKLCH L 44.0% C 0.092 H 115.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#51580F
RGBrgb(81, 88, 15)
HSLhsl(66, 71%, 20%)
HSVhsv(66, 83%, 35%)
CMYKcmyk(8%, 0%, 83%, 65.5%)
CIE-LABlab(35.52, -12.81, 38.11)
CIE-LCHlch(35.52, 40.21, 108.58°)
OKLaboklab(43.98% -0.0392 0.0835)
OKLCHoklch(43.98% 0.092 115.2)
XYZxyz(6.9695, 8.7634, 1.7762)
Luminance0.0876 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51580F #160F58
analogous
#583A0F #51580F #2D580F
triadic
#51580F #0F5158 #580F51
tetradic
#51580F #0F583A #160F58 #580F2D
square
#51580F #0F583A #160F58 #580F2D
split-complementary
#51580F #0F2D58 #3A0F58
monochromatic
#181A04 #212406 #51580F #818C18 #B1C121

Accessibility & contrast

On white

7.63
#51580F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#51580F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51580F
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51580F#FFFFFF#000000##FFFFFF
##51580F1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5300
Deuteranopia (green-blind)
#5E5416
Tritanopia (blue-blind)
#57524A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #51580f;
/* rgb */ color: rgb(81, 88, 15);
/* oklch */ color: oklch(44.0% 0.092 115.2);
Tailwind
colors: {
  custom: {
    50: '#848755',
    500: '#51580f',
    950: '#000000',
  },
}
SCSS
$custom: #51580f;
$custom-light: #848755;
$custom-dark: #000000;
JSON
{
  "hex": "#51580f",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 15
  },
  "hsl": {
    "h": 65.753,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.43979,
    "c": 0.09222,
    "h": 115.2
  },
  "luminance": 0.08763
}

Semantic roles & 50–950 ramp

primary
#51580F
secondary
#3A3192
accent
#3AEE4B
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #51580F

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

Preview Lab → · Contrast checker → · Palette generator →

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