#A5A52F#A5A52F

#A5A52F is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.1% C 0.136 H 109.4°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#A5A52F
RGBrgb(165, 165, 47)
HSLhsl(60, 56%, 42%)
HSVhsv(60, 72%, 65%)
CMYKcmyk(0%, 0%, 71.5%, 35.3%)
CIE-LABlab(65.84, -14.27, 57.64)
CIE-LCHlch(65.84, 59.38, 103.91°)
OKLaboklab(70.06% -0.0451 0.1278)
OKLCHoklch(70.06% 0.136 109.4)
XYZxyz(29.4863, 35.1157, 7.9135)
Luminance0.3512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A52F #2F2FA5
analogous
#A56A2F #A5A52F #6AA52F
triadic
#A5A52F #2FA5A5 #A52FA5
tetradic
#A5A52F #2FA56A #2F2FA5 #A52F6A
square
#A5A52F #2FA56A #2F2FA5 #A52F6A
split-complementary
#A5A52F #2F6AA5 #6A2FA5
monochromatic
#464614 #757521 #A5A52F #CBCB47 #D8D876

Accessibility & contrast

On white

2.62
#A5A52F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#A5A52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A52F
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A52F#FFFFFF#000000##000000
##A5A52F1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E1A
Deuteranopia (green-blind)
#B4A238
Tritanopia (blue-blind)
#B19A8E
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a5a52f;
/* rgb */ color: rgb(165, 165, 47);
/* oklch */ color: oklch(70.1% 0.136 109.4);
Tailwind
colors: {
  custom: {
    50: '#c3bf70',
    500: '#a5a52f',
    950: '#000000',
  },
}
SCSS
$custom: #a5a52f;
$custom-light: #c3bf70;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a52f",
  "rgb": {
    "r": 165,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 60,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.7006,
    "c": 0.1355,
    "h": 109.4
  },
  "luminance": 0.35115
}

Semantic roles & 50–950 ramp

primary
#A5A52F
secondary
#7070C0
accent
#49DF49
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A5A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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