#A8A538#A8A538

#A8A538 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.4% C 0.129 H 107.8°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#A8A538
RGBrgb(168, 165, 56)
HSLhsl(58, 50%, 44%)
HSVhsv(58, 67%, 66%)
CMYKcmyk(0%, 1.8%, 66.7%, 34.1%)
CIE-LABlab(66.15, -12.47, 54.52)
CIE-LCHlch(66.15, 55.93, 102.89°)
OKLaboklab(70.39% -0.0393 0.1227)
OKLCHoklch(70.39% 0.129 107.8)
XYZxyz(30.3185, 35.5216, 8.9999)
Luminance0.3552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A538 #383BA8
analogous
#A86D38 #A8A538 #73A838
triadic
#A8A538 #38A8A5 #A538A8
tetradic
#A8A538 #38A86D #383BA8 #A83873
square
#A8A538 #38A86D #383BA8 #A83873
split-complementary
#A8A538 #3873A8 #6D38A8
monochromatic
#4C4B19 #7A7829 #A8A538 #C7C456 #D6D484

Accessibility & contrast

On white

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

On black

8.10
#A8A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A538
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A538#FFFFFF#000000##000000
##A8A5381.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F29
Deuteranopia (green-blind)
#B4A33F
Tritanopia (blue-blind)
#B49A8F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a8a538;
/* rgb */ color: rgb(168, 165, 56);
/* oklch */ color: oklch(70.4% 0.129 107.8);
Tailwind
colors: {
  custom: {
    50: '#c5bf75',
    500: '#a8a538',
    950: '#000000',
  },
}
SCSS
$custom: #a8a538;
$custom-light: #c5bf75;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a538",
  "rgb": {
    "r": 168,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 58.393,
    "s": 50,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70392,
    "c": 0.1288,
    "h": 107.8
  },
  "luminance": 0.35521
}

Semantic roles & 50–950 ramp

primary
#A8A538
secondary
#7C7EC0
accent
#52DA4E
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A538

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

Preview Lab → · Contrast checker → · Palette generator →

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