#A8A252#A8A252

#A8A252 is a light, moderate yellow. Relative luminance 0.348; OKLCH L 70.0% C 0.103 H 104.9°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#A8A252
RGBrgb(168, 162, 82)
HSLhsl(56, 34%, 49%)
HSVhsv(56, 51%, 66%)
CMYKcmyk(0%, 3.6%, 51.2%, 34.1%)
CIE-LABlab(65.57, -8.95, 41.96)
CIE-LCHlch(65.57, 42.90, 102.04°)
OKLaboklab(70.01% -0.0263 0.0992)
OKLCHoklch(70.01% 0.103 104.9)
XYZxyz(30.5926, 34.7756, 13.0819)
Luminance0.3478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A252 #5258A8
analogous
#A87752 #A8A252 #83A852
triadic
#A8A252 #52A8A2 #A252A8
tetradic
#A8A252 #52A877 #5258A8 #A85283
square
#A8A252 #52A877 #5258A8 #A85283
split-complementary
#A8A252 #5283A8 #7752A8
monochromatic
#56532A #7F7A3E #A8A252 #BEB979 #D2CFA3

Accessibility & contrast

On white

2.64
#A8A252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#A8A252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A252
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A252#FFFFFF#000000##000000
##A8A2521.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9D4B
Deuteranopia (green-blind)
#B0A156
Tritanopia (blue-blind)
#B39990
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a8a252;
/* rgb */ color: rgb(168, 162, 82);
/* oklch */ color: oklch(70.0% 0.103 104.9);
Tailwind
colors: {
  custom: {
    50: '#c4bd85',
    500: '#a8a252',
    950: '#000000',
  },
}
SCSS
$custom: #a8a252;
$custom-light: #c4bd85;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a252",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 82
  },
  "hsl": {
    "h": 55.814,
    "s": 34.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.70012,
    "c": 0.10261,
    "h": 104.9
  },
  "luminance": 0.34775
}

Semantic roles & 50–950 ramp

primary
#A8A252
secondary
#9799BF
accent
#65CA5D
background
#FCFBF8
surface
#F8F6EF
border
#D1D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #A8A252

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

Preview Lab → · Contrast checker → · Palette generator →

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