#A8A540#A8A540

#A8A540 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.5% C 0.123 H 107.6°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#A8A540
RGBrgb(168, 165, 64)
HSLhsl(58, 45%, 45%)
HSVhsv(58, 62%, 66%)
CMYKcmyk(0%, 1.8%, 61.9%, 34.1%)
CIE-LABlab(66.22, -11.96, 51.18)
CIE-LCHlch(66.22, 52.56, 103.16°)
OKLaboklab(70.47% -0.0369 0.1168)
OKLCHoklch(70.47% 0.123 107.6)
XYZxyz(30.5300, 35.6062, 10.1140)
Luminance0.3560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A540 #4043A8
analogous
#A87140 #A8A540 #77A840
triadic
#A8A540 #40A8A5 #A540A8
tetradic
#A8A540 #40A871 #4043A8 #A84077
square
#A8A540 #40A871 #4043A8 #A84077
split-complementary
#A8A540 #4077A8 #7140A8
monochromatic
#4F4E1E #7C792F #A8A540 #C3C062 #D4D28E

Accessibility & contrast

On white

2.59
#A8A540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#A8A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A540
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A540#FFFFFF#000000##000000
##A8A5401.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F34
Deuteranopia (green-blind)
#B4A346
Tritanopia (blue-blind)
#B39B90
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a8a540;
/* rgb */ color: rgb(168, 165, 64);
/* oklch */ color: oklch(70.5% 0.123 107.6);
Tailwind
colors: {
  custom: {
    50: '#c4bf79',
    500: '#a8a540',
    950: '#000000',
  },
}
SCSS
$custom: #a8a540;
$custom-light: #c4bf79;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a540",
  "rgb": {
    "r": 168,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 58.269,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70465,
    "c": 0.12253,
    "h": 107.6
  },
  "luminance": 0.35605
}

Semantic roles & 50–950 ramp

primary
#A8A540
secondary
#8586BF
accent
#57D553
background
#FCFBF7
surface
#F8F7EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A540

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

Preview Lab → · Contrast checker → · Palette generator →

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