#A5A822#A5A822

#A5A822 is a light, vivid yellow. Relative luminance 0.361; OKLCH L 70.7% C 0.146 H 111.0°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#A5A822
RGBrgb(165, 168, 34)
HSLhsl(61, 66%, 40%)
HSVhsv(61, 80%, 66%)
CMYKcmyk(1.8%, 0%, 79.8%, 34.1%)
CIE-LABlab(66.61, -16.38, 62.64)
CIE-LCHlch(66.61, 64.75, 104.65°)
OKLaboklab(70.66% -0.0521 0.136)
OKLCHoklch(70.66% 0.146 111)
XYZxyz(29.8095, 36.1209, 6.9148)
Luminance0.3612 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A822 #2522A8
analogous
#A86822 #A5A822 #62A822
triadic
#A5A822 #22A5A8 #A822A5
tetradic
#A5A822 #22A868 #2522A8 #A82262
square
#A5A822 #22A868 #2522A8 #A82262
split-complementary
#A5A822 #2262A8 #6822A8
monochromatic
#41420D #737518 #A5A822 #D2D532 #DDE065

Accessibility & contrast

On white

2.55
#A5A822 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#A5A822 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A822
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A822#FFFFFF#000000##000000
##A5A8221.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#B7A42E
Tritanopia (blue-blind)
#B19D90
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a5a822;
/* rgb */ color: rgb(165, 168, 34);
/* oklch */ color: oklch(70.7% 0.146 111.0);
Tailwind
colors: {
  custom: {
    50: '#c3c16a',
    500: '#a5a822',
    950: '#000000',
  },
}
SCSS
$custom: #a5a822;
$custom-light: #c3c16a;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a822",
  "rgb": {
    "r": 165,
    "g": 168,
    "b": 34
  },
  "hsl": {
    "h": 61.343,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.70657,
    "c": 0.14566,
    "h": 111
  },
  "luminance": 0.3612
}

Semantic roles & 50–950 ramp

primary
#A5A822
secondary
#6361C5
accent
#3FE942
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5A822

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

Preview Lab → · Contrast checker → · Palette generator →

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