#A5981F#A5981F

#A5981F is a light, vivid yellow. Relative luminance 0.306; OKLCH L 67.1% C 0.132 H 102.8°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#A5981F
RGBrgb(165, 152, 31)
HSLhsl(54, 68%, 38%)
HSVhsv(54, 81%, 65%)
CMYKcmyk(0%, 7.9%, 81.2%, 35.3%)
CIE-LABlab(62.13, -8.11, 59.58)
CIE-LCHlch(62.13, 60.13, 97.75°)
OKLaboklab(67.08% -0.0293 0.1289)
OKLCHoklch(67.08% 0.132 102.8)
XYZxyz(26.9939, 30.5559, 5.7721)
Luminance0.3055 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5981F #1F2CA5
analogous
#A5551F #A5981F #6FA51F
triadic
#A5981F #1FA598 #981FA5
tetradic
#A5981F #1FA555 #1F2CA5 #A51F6F
square
#A5981F #1FA555 #1F2CA5 #A51F6F
split-complementary
#A5981F #1F6FA5 #551FA5
monochromatic
#3E390C #716915 #A5981F #D7C62A #E1D45E

Accessibility & contrast

On white

2.95
#A5981F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#A5981F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5981F
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5981F#FFFFFF#000000##000000
##A5981F1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79300
Deuteranopia (green-blind)
#AB9929
Tritanopia (blue-blind)
#B28D82
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #a5981f;
/* rgb */ color: rgb(165, 152, 31);
/* oklch */ color: oklch(67.1% 0.132 102.8);
Tailwind
colors: {
  custom: {
    50: '#c4b567',
    500: '#a5981f',
    950: '#000000',
  },
}
SCSS
$custom: #a5981f;
$custom-light: #c4b567;
$custom-dark: #000000;
JSON
{
  "hex": "#a5981f",
  "rgb": {
    "r": 165,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 54.179,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.67078,
    "c": 0.13215,
    "h": 102.8
  },
  "luminance": 0.30555
}

Semantic roles & 50–950 ramp

primary
#A5981F
secondary
#5B65C5
accent
#4EEB3D
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #A5981F

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

Preview Lab → · Contrast checker → · Palette generator →

#A5981F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva