#A8A628#A8A628

#A8A628 is a light, vivid yellow. Relative luminance 0.357; OKLCH L 70.5% C 0.140 H 108.6°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#A8A628
RGBrgb(168, 166, 40)
HSLhsl(59, 62%, 41%)
HSVhsv(59, 76%, 66%)
CMYKcmyk(0%, 1.2%, 76.2%, 34.1%)
CIE-LABlab(66.33, -13.80, 60.63)
CIE-LCHlch(66.33, 62.18, 102.82°)
OKLaboklab(70.5% -0.0446 0.1327)
OKLCHoklch(70.5% 0.14 108.6)
XYZxyz(30.1688, 35.7514, 7.3186)
Luminance0.3575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A628 #282AA8
analogous
#A86628 #A8A628 #6AA828
triadic
#A8A628 #28A8A6 #A628A8
tetradic
#A8A628 #28A866 #282AA8 #A8286A
square
#A8A628 #28A866 #282AA8 #A8286A
split-complementary
#A8A628 #286AA8 #6628A8
monochromatic
#454410 #77751C #A8A628 #D1CE3D #DCDB6E

Accessibility & contrast

On white

2.58
#A8A628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#A8A628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A628
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A628#FFFFFF#000000##000000
##A8A6281.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F08
Deuteranopia (green-blind)
#B6A332
Tritanopia (blue-blind)
#B49B8E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a8a628;
/* rgb */ color: rgb(168, 166, 40);
/* oklch */ color: oklch(70.5% 0.140 108.6);
Tailwind
colors: {
  custom: {
    50: '#c5c06d',
    500: '#a8a628',
    950: '#000000',
  },
}
SCSS
$custom: #a8a628;
$custom-light: #c5c06d;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a628",
  "rgb": {
    "r": 168,
    "g": 166,
    "b": 40
  },
  "hsl": {
    "h": 59.063,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.70501,
    "c": 0.14,
    "h": 108.6
  },
  "luminance": 0.3575
}

Semantic roles & 50–950 ramp

primary
#A8A628
secondary
#696AC3
accent
#46E543
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A628

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

Preview Lab → · Contrast checker → · Palette generator →

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