#A8A822#A8A822

#A8A822 is a light, vivid yellow. Relative luminance 0.364; OKLCH L 70.9% C 0.145 H 109.6°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#A8A822
RGBrgb(168, 168, 34)
HSLhsl(60, 66%, 40%)
HSVhsv(60, 80%, 66%)
CMYKcmyk(0%, 0%, 79.8%, 34.1%)
CIE-LABlab(66.86, -15.06, 62.95)
CIE-LCHlch(66.86, 64.73, 103.45°)
OKLaboklab(70.91% -0.0486 0.1366)
OKLCHoklch(70.91% 0.145 109.6)
XYZxyz(30.4410, 36.4465, 6.9444)
Luminance0.3645 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A822 #2222A8
analogous
#A86522 #A8A822 #65A822
triadic
#A8A822 #22A8A8 #A822A8
tetradic
#A8A822 #22A865 #2222A8 #A82265
square
#A8A822 #22A865 #2222A8 #A82265
split-complementary
#A8A822 #2265A8 #6522A8
monochromatic
#42420D #757518 #A8A822 #D5D532 #E0E065

Accessibility & contrast

On white

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

On black

8.29
#A8A822 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A822
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A822#FFFFFF#000000##000000
##A8A8221.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8a822;
/* rgb */ color: rgb(168, 168, 34);
/* oklch */ color: oklch(70.9% 0.145 109.6);
Tailwind
colors: {
  custom: {
    50: '#c6c16a',
    500: '#a8a822',
    950: '#000000',
  },
}
SCSS
$custom: #a8a822;
$custom-light: #c6c16a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a822",
  "rgb": {
    "r": 168,
    "g": 168,
    "b": 34
  },
  "hsl": {
    "h": 60,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.70915,
    "c": 0.14495,
    "h": 109.6
  },
  "luminance": 0.36446
}

Semantic roles & 50–950 ramp

primary
#A8A822
secondary
#6161C5
accent
#3FE93F
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A822

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

Preview Lab → · Contrast checker → · Palette generator →

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