#A5A71F#A5A71F

#A5A71F is a light, vivid yellow. Relative luminance 0.357; OKLCH L 70.4% C 0.146 H 110.5°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#A5A71F
RGBrgb(165, 167, 31)
HSLhsl(61, 69%, 39%)
HSVhsv(61, 81%, 65%)
CMYKcmyk(1.2%, 0%, 81.4%, 34.5%)
CIE-LABlab(66.32, -15.97, 63.22)
CIE-LCHlch(66.32, 65.21, 104.17°)
OKLaboklab(70.42% -0.0512 0.1367)
OKLCHoklch(70.42% 0.146 110.5)
XYZxyz(29.5842, 35.7366, 6.6355)
Luminance0.3574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A71F #211FA7
analogous
#A7651F #A5A71F #61A71F
triadic
#A5A71F #1FA5A7 #A71FA5
tetradic
#A5A71F #1FA765 #211FA7 #A71F61
square
#A5A71F #1FA765 #211FA7 #A71F61
split-complementary
#A5A71F #1F61A7 #651FA7
monochromatic
#3F400C #727315 #A5A71F #D5D82B #DFE15F

Accessibility & contrast

On white

2.58
#A5A71F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#A5A71F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A71F
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A71F#FFFFFF#000000##000000
##A5A71F1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B59F00
Deuteranopia (green-blind)
#B6A32C
Tritanopia (blue-blind)
#B19C8F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a5a71f;
/* rgb */ color: rgb(165, 167, 31);
/* oklch */ color: oklch(70.4% 0.146 110.5);
Tailwind
colors: {
  custom: {
    50: '#c4c069',
    500: '#a5a71f',
    950: '#000000',
  },
}
SCSS
$custom: #a5a71f;
$custom-light: #c4c069;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a71f",
  "rgb": {
    "r": 165,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 60.882,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.70417,
    "c": 0.14599,
    "h": 110.5
  },
  "luminance": 0.35736
}

Semantic roles & 50–950 ramp

primary
#A5A71F
secondary
#5E5CC6
accent
#3CEC3F
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A5A71F

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

Preview Lab → · Contrast checker → · Palette generator →

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