#A5AF22#A5AF22

#A5AF22 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.2% C 0.153 H 113.9°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#A5AF22
RGBrgb(165, 175, 34)
HSLhsl(64, 67%, 41%)
HSVhsv(64, 81%, 69%)
CMYKcmyk(5.7%, 0%, 80.6%, 31.4%)
CIE-LABlab(68.59, -19.93, 64.38)
CIE-LCHlch(68.59, 67.39, 107.20°)
OKLaboklab(72.24% -0.0619 0.1398)
OKLCHoklch(72.24% 0.153 113.9)
XYZxyz(31.1368, 38.7754, 7.3572)
Luminance0.3877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF22 #2C22AF
analogous
#AF7222 #A5AF22 #5EAF22
triadic
#A5AF22 #22A5AF #AF22A5
tetradic
#A5AF22 #22AF72 #2C22AF #AF225E
square
#A5AF22 #22AF72 #2C22AF #AF225E
split-complementary
#A5AF22 #225EAF #7222AF
monochromatic
#44490E #757C18 #A5AF22 #CDD836 #D9E269

Accessibility & contrast

On white

2.40
#A5AF22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#A5AF22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AF22
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AF22#FFFFFF#000000##000000
##A5AF221.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA600
Deuteranopia (green-blind)
#BCA930
Tritanopia (blue-blind)
#B0A496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a5af22;
/* rgb */ color: rgb(165, 175, 34);
/* oklch */ color: oklch(72.2% 0.153 113.9);
Tailwind
colors: {
  custom: {
    50: '#c4c66b',
    500: '#a5af22',
    950: '#000000',
  },
}
SCSS
$custom: #a5af22;
$custom-light: #c4c66b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af22",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 34
  },
  "hsl": {
    "h": 64.255,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72239,
    "c": 0.15285,
    "h": 113.9
  },
  "luminance": 0.38775
}

Semantic roles & 50–950 ramp

primary
#A5AF22
secondary
#6C65C8
accent
#3DEA4A
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5AF22

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

Preview Lab → · Contrast checker → · Palette generator →

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