#A8A51F#A8A51F

#A8A51F is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.2% C 0.143 H 108.2°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#A8A51F
RGBrgb(168, 165, 31)
HSLhsl(59, 69%, 39%)
HSVhsv(59, 82%, 66%)
CMYKcmyk(0%, 1.8%, 81.5%, 34.1%)
CIE-LABlab(66.01, -13.61, 63.05)
CIE-LCHlch(66.01, 64.51, 102.18°)
OKLaboklab(70.23% -0.0448 0.1362)
OKLCHoklch(70.23% 0.143 108.2)
XYZxyz(29.8521, 35.3350, 6.5439)
Luminance0.3533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A51F #1F22A8
analogous
#A8611F #A8A51F #67A81F
triadic
#A8A51F #1FA8A5 #A51FA8
tetradic
#A8A51F #1FA861 #1F22A8 #A81F67
square
#A8A51F #1FA861 #1F22A8 #A81F67
split-complementary
#A8A51F #1F67A8 #611FA8
monochromatic
#41400C #747215 #A8A51F #D8D42C #E2DF60

Accessibility & contrast

On white

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

On black

8.07
#A8A51F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A51F
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A51F#FFFFFF#000000##000000
##A8A51F1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B5A22C
Tritanopia (blue-blind)
#B59A8D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a8a51f;
/* rgb */ color: rgb(168, 165, 31);
/* oklch */ color: oklch(70.2% 0.143 108.2);
Tailwind
colors: {
  custom: {
    50: '#c6bf69',
    500: '#a8a51f',
    950: '#000000',
  },
}
SCSS
$custom: #a8a51f;
$custom-light: #c6bf69;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a51f",
  "rgb": {
    "r": 168,
    "g": 165,
    "b": 31
  },
  "hsl": {
    "h": 58.686,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.70231,
    "c": 0.1434,
    "h": 108.2
  },
  "luminance": 0.35334
}

Semantic roles & 50–950 ramp

primary
#A8A51F
secondary
#5D5FC6
accent
#40EC3C
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A51F

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

Preview Lab → · Contrast checker → · Palette generator →

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