#5A510F#5A510F

#5A510F is a dark, moderate yellow. Relative luminance 0.081; OKLCH L 43.1% C 0.083 H 101.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5A510F
RGBrgb(90, 81, 15)
HSLhsl(53, 71%, 21%)
HSVhsv(53, 83%, 35%)
CMYKcmyk(0%, 10%, 83.3%, 64.7%)
CIE-LABlab(34.18, -4.27, 37.20)
CIE-LCHlch(34.18, 37.44, 96.55°)
OKLaboklab(43.11% -0.0159 0.0811)
OKLCHoklch(43.11% 0.083 101.1)
XYZxyz(7.2455, 8.0933, 1.6324)
Luminance0.0809 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A510F #0F185A
analogous
#5A2B0F #5A510F #3D5A0F
triadic
#5A510F #0F5A51 #510F5A
tetradic
#5A510F #0F5A2B #0F185A #5A0F3D
square
#5A510F #0F5A2B #0F185A #5A0F3D
split-complementary
#5A510F #0F3D5A #2B0F5A
monochromatic
#1A1804 #262206 #5A510F #8E8018 #C3AF20

Accessibility & contrast

On white

8.02
#5A510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5A510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A510F
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A510F#FFFFFF#000000##FFFFFF
##5A510F1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4E02
Deuteranopia (green-blind)
#5C5214
Tritanopia (blue-blind)
#624A45
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a510f;
/* rgb */ color: rgb(90, 81, 15);
/* oklch */ color: oklch(43.1% 0.083 101.1);
Tailwind
colors: {
  custom: {
    50: '#8c8154',
    500: '#5a510f',
    950: '#000000',
  },
}
SCSS
$custom: #5a510f;
$custom-light: #8c8154;
$custom-dark: #000000;
JSON
{
  "hex": "#5a510f",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 52.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.43111,
    "c": 0.08266,
    "h": 101.1
  },
  "luminance": 0.08093
}

Semantic roles & 50–950 ramp

primary
#5A510F
secondary
#313D94
accent
#4FEE3A
background
#F8F7F5
surface
#F0EEE8
border
#CBC9C4
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A510F

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

Preview Lab → · Contrast checker → · Palette generator →

#5A510F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva