#A5A522#A5A522

#A5A522 is a light, vivid yellow. Relative luminance 0.350; OKLCH L 70.0% C 0.143 H 109.6°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#A5A522
RGBrgb(165, 165, 34)
HSLhsl(60, 66%, 39%)
HSVhsv(60, 79%, 65%)
CMYKcmyk(0%, 0%, 79.4%, 35.3%)
CIE-LABlab(65.77, -14.83, 61.90)
CIE-LCHlch(65.77, 63.65, 103.48°)
OKLaboklab(69.98% -0.0478 0.1344)
OKLCHoklch(69.98% 0.143 109.6)
XYZxyz(29.2620, 35.0260, 6.7323)
Luminance0.3503 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A522 #2222A5
analogous
#A56422 #A5A522 #64A522
triadic
#A5A522 #22A5A5 #A522A5
tetradic
#A5A522 #22A564 #2222A5 #A52264
square
#A5A522 #22A564 #2222A5 #A52264
split-complementary
#A5A522 #2264A5 #6422A5
monochromatic
#40400D #727218 #A5A522 #D4D430 #DFDF63

Accessibility & contrast

On white

2.62
#A5A522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#A5A522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A522
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A522#FFFFFF#000000##000000
##A5A5221.002.628.008.00
#FFFFFF2.621.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B4A22E
Tritanopia (blue-blind)
#B19A8D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a5a522;
/* rgb */ color: rgb(165, 165, 34);
/* oklch */ color: oklch(70.0% 0.143 109.6);
Tailwind
colors: {
  custom: {
    50: '#c3bf6a',
    500: '#a5a522',
    950: '#000000',
  },
}
SCSS
$custom: #a5a522;
$custom-light: #c3bf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a522",
  "rgb": {
    "r": 165,
    "g": 165,
    "b": 34
  },
  "hsl": {
    "h": 60,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.69982,
    "c": 0.14267,
    "h": 109.6
  },
  "luminance": 0.35025
}

Semantic roles & 50–950 ramp

primary
#A5A522
secondary
#5F5FC4
accent
#3FE93F
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5A522

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

Preview Lab → · Contrast checker → · Palette generator →

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