#5A530F#5A530F

#5A530F is a dark, moderate yellow. Relative luminance 0.084; OKLCH L 43.6% C 0.085 H 103.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5A530F
RGBrgb(90, 83, 15)
HSLhsl(54, 71%, 21%)
HSVhsv(54, 83%, 35%)
CMYKcmyk(0%, 7.8%, 83.3%, 64.7%)
CIE-LABlab(34.79, -5.47, 37.76)
CIE-LCHlch(34.79, 38.15, 98.24°)
OKLaboklab(43.6% -0.0193 0.0823)
OKLCHoklch(43.6% 0.085 103.2)
XYZxyz(7.3963, 8.3950, 1.6826)
Luminance0.0839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A530F #0F165A
analogous
#5A2D0F #5A530F #3B5A0F
triadic
#5A530F #0F5A53 #530F5A
tetradic
#5A530F #0F5A2D #0F165A #5A0F3B
square
#5A530F #0F5A2D #0F165A #5A0F3B
split-complementary
#5A530F #0F3B5A #2D0F5A
monochromatic
#1A1804 #262306 #5A530F #8E8318 #C3B420

Accessibility & contrast

On white

7.84
#5A530F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5A530F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A530F
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A530F#FFFFFF#000000##FFFFFF
##5A530F1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5002
Deuteranopia (green-blind)
#5E5314
Tritanopia (blue-blind)
#624C46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a530f;
/* rgb */ color: rgb(90, 83, 15);
/* oklch */ color: oklch(43.6% 0.085 103.2);
Tailwind
colors: {
  custom: {
    50: '#8c8354',
    500: '#5a530f',
    950: '#000000',
  },
}
SCSS
$custom: #5a530f;
$custom-light: #8c8354;
$custom-dark: #000000;
JSON
{
  "hex": "#5a530f",
  "rgb": {
    "r": 90,
    "g": 83,
    "b": 15
  },
  "hsl": {
    "h": 54.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.436,
    "c": 0.08453,
    "h": 103.2
  },
  "luminance": 0.08395
}

Semantic roles & 50–950 ramp

primary
#5A530F
secondary
#313A94
accent
#4AEE3A
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A530F

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

Preview Lab → · Contrast checker → · Palette generator →

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