#A5AF21#A5AF21

#A5AF21 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#A5AF21
RGBrgb(165, 175, 33)
HSLhsl(64, 68%, 41%)
HSVhsv(64, 81%, 69%)
CMYKcmyk(5.7%, 0%, 81.1%, 31.4%)
CIE-LABlab(68.58, -19.96, 64.65)
CIE-LCHlch(68.58, 67.66, 107.16°)
OKLaboklab(72.24% -0.0621 0.1402)
OKLCHoklch(72.24% 0.153 113.9)
XYZxyz(31.1225, 38.7697, 7.2824)
Luminance0.3877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF21 #2B21AF
analogous
#AF7221 #A5AF21 #5EAF21
triadic
#A5AF21 #21A5AF #AF21A5
tetradic
#A5AF21 #21AF72 #2B21AF #AF215E
square
#A5AF21 #21AF72 #2B21AF #AF215E
split-complementary
#A5AF21 #215EAF #7221AF
monochromatic
#44480E #747C17 #A5AF21 #CDD934 #DAE368

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5AF21#FFFFFF#000000##000000
##A5AF211.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)
#BCA92F
Tritanopia (blue-blind)
#B0A496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a5af21;
/* rgb */ color: rgb(165, 175, 33);
/* oklch */ color: oklch(72.2% 0.153 113.9);
Tailwind
colors: {
  custom: {
    50: '#c4c66b',
    500: '#a5af21',
    950: '#000000',
  },
}
SCSS
$custom: #a5af21;
$custom-light: #c4c66b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af21",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 33
  },
  "hsl": {
    "h": 64.225,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.72235,
    "c": 0.15329,
    "h": 113.9
  },
  "luminance": 0.38769
}

Semantic roles & 50–950 ramp

primary
#A5AF21
secondary
#6B64C8
accent
#3DEB49
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5AF21

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

Preview Lab → · Contrast checker → · Palette generator →

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