#A5A222#A5A222

#A5A222 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.3% C 0.140 H 108.1°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#A5A222
RGBrgb(165, 162, 34)
HSLhsl(59, 66%, 39%)
HSVhsv(59, 79%, 65%)
CMYKcmyk(0%, 1.8%, 79.4%, 35.3%)
CIE-LABlab(64.93, -13.28, 61.15)
CIE-LCHlch(64.93, 62.57, 102.25°)
OKLaboklab(69.31% -0.0435 0.1328)
OKLCHoklch(69.31% 0.14 108.1)
XYZxyz(28.7273, 33.9565, 6.5541)
Luminance0.3396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A222 #2225A5
analogous
#A56122 #A5A222 #67A522
triadic
#A5A222 #22A5A2 #A222A5
tetradic
#A5A222 #22A561 #2225A5 #A52267
square
#A5A222 #22A561 #2225A5 #A52267
split-complementary
#A5A222 #2267A5 #6122A5
monochromatic
#403E0D #727018 #A5A222 #D4D130 #DFDC63

Accessibility & contrast

On white

2.70
#A5A222 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#A5A222 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A222
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A222#FFFFFF#000000##000000
##A5A2221.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#B2A02D
Tritanopia (blue-blind)
#B1978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a5a222;
/* rgb */ color: rgb(165, 162, 34);
/* oklch */ color: oklch(69.3% 0.140 108.1);
Tailwind
colors: {
  custom: {
    50: '#c3bd69',
    500: '#a5a222',
    950: '#000000',
  },
}
SCSS
$custom: #a5a222;
$custom-light: #c3bd69;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a222",
  "rgb": {
    "r": 165,
    "g": 162,
    "b": 34
  },
  "hsl": {
    "h": 58.626,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.69311,
    "c": 0.13976,
    "h": 108.1
  },
  "luminance": 0.33955
}

Semantic roles & 50–950 ramp

primary
#A5A222
secondary
#5F61C4
accent
#43E93F
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5A222

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

Preview Lab → · Contrast checker → · Palette generator →

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