#A8A828#A8A828

#A8A828 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 70.9% C 0.142 H 109.5°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#A8A828
RGBrgb(168, 168, 40)
HSLhsl(60, 62%, 41%)
HSVhsv(60, 76%, 66%)
CMYKcmyk(0%, 0%, 76.2%, 34.1%)
CIE-LABlab(66.89, -14.83, 61.14)
CIE-LCHlch(66.89, 62.92, 103.64°)
OKLaboklab(70.95% -0.0475 0.1338)
OKLCHoklch(70.95% 0.142 109.5)
XYZxyz(30.5352, 36.4842, 7.4407)
Luminance0.3648 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A828 #2828A8
analogous
#A86828 #A8A828 #68A828
triadic
#A8A828 #28A8A8 #A828A8
tetradic
#A8A828 #28A868 #2828A8 #A82868
square
#A8A828 #28A868 #2828A8 #A82868
split-complementary
#A8A828 #2868A8 #6828A8
monochromatic
#454510 #77771C #A8A828 #D1D13D #DCDC6E

Accessibility & contrast

On white

2.53
#A8A828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#A8A828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A828
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A828#FFFFFF#000000##000000
##A8A8281.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A106
Deuteranopia (green-blind)
#B7A533
Tritanopia (blue-blind)
#B49D90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a8a828;
/* rgb */ color: rgb(168, 168, 40);
/* oklch */ color: oklch(70.9% 0.142 109.5);
Tailwind
colors: {
  custom: {
    50: '#c5c16d',
    500: '#a8a828',
    950: '#000000',
  },
}
SCSS
$custom: #a8a828;
$custom-light: #c5c16d;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a828",
  "rgb": {
    "r": 168,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.70947,
    "c": 0.14198,
    "h": 109.5
  },
  "luminance": 0.36483
}

Semantic roles & 50–950 ramp

primary
#A8A828
secondary
#6969C3
accent
#43E543
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A8A828

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

Preview Lab → · Contrast checker → · Palette generator →

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