#A8A52F#A8A52F

#A8A52F is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.3% C 0.135 H 108.0°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#A8A52F
RGBrgb(168, 165, 47)
HSLhsl(59, 56%, 42%)
HSVhsv(59, 72%, 66%)
CMYKcmyk(0%, 1.8%, 72%, 34.1%)
CIE-LABlab(66.09, -12.96, 57.97)
CIE-LCHlch(66.09, 59.40, 102.60°)
OKLaboklab(70.32% -0.0416 0.1284)
OKLCHoklch(70.32% 0.135 108)
XYZxyz(30.1178, 35.4413, 7.9431)
Luminance0.3544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A52F #2F32A8
analogous
#A8682F #A8A52F #6FA82F
triadic
#A8A52F #2FA8A5 #A52FA8
tetradic
#A8A52F #2FA868 #2F32A8 #A82F6F
square
#A8A52F #2FA868 #2F32A8 #A82F6F
split-complementary
#A8A52F #2F6FA8 #682FA8
monochromatic
#484714 #787622 #A8A52F #CCC948 #D9D778

Accessibility & contrast

On white

2.60
#A8A52F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#A8A52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A52F
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A52F#FFFFFF#000000##000000
##A8A52F1.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E1A
Deuteranopia (green-blind)
#B5A338
Tritanopia (blue-blind)
#B49A8E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a8a52f;
/* rgb */ color: rgb(168, 165, 47);
/* oklch */ color: oklch(70.3% 0.135 108.0);
Tailwind
colors: {
  custom: {
    50: '#c5bf70',
    500: '#a8a52f',
    950: '#000000',
  },
}
SCSS
$custom: #a8a52f;
$custom-light: #c5bf70;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a52f",
  "rgb": {
    "r": 168,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 58.512,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.70323,
    "c": 0.13494,
    "h": 108
  },
  "luminance": 0.3544
}

Semantic roles & 50–950 ramp

primary
#A8A52F
secondary
#7173C1
accent
#4CE048
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A8A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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