#A5AF3A#A5AF3A

#A5AF3A is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.4% C 0.139 H 114.1°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#A5AF3A
RGBrgb(165, 175, 58)
HSLhsl(65, 50%, 46%)
HSVhsv(65, 67%, 69%)
CMYKcmyk(5.7%, 0%, 66.9%, 31.4%)
CIE-LABlab(68.73, -18.78, 56.27)
CIE-LCHlch(68.73, 59.32, 108.45°)
OKLaboklab(72.39% -0.0566 0.1268)
OKLCHoklch(72.39% 0.139 114.1)
XYZxyz(31.6116, 38.9654, 9.8580)
Luminance0.3896 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF3A #443AAF
analogous
#AF7E3A #A5AF3A #6AAF3A
triadic
#A5AF3A #3AA5AF #AF3AA5
tetradic
#A5AF3A #3AAF7E #443AAF #AF3A6A
square
#A5AF3A #3AAF7E #443AAF #AF3A6A
split-complementary
#A5AF3A #3A6AAF #7E3AAF
monochromatic
#4E531C #7A812B #A5AF3A #C0C95D #D2D98B

Accessibility & contrast

On white

2.39
#A5AF3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#A5AF3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AF3A
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AF3A#FFFFFF#000000##000000
##A5AF3A1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA729
Deuteranopia (green-blind)
#BBA942
Tritanopia (blue-blind)
#B0A597
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a5af3a;
/* rgb */ color: rgb(165, 175, 58);
/* oklch */ color: oklch(72.4% 0.139 114.1);
Tailwind
colors: {
  custom: {
    50: '#c3c677',
    500: '#a5af3a',
    950: '#000000',
  },
}
SCSS
$custom: #a5af3a;
$custom-light: #c3c677;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af3a",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 58
  },
  "hsl": {
    "h": 65.128,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72394,
    "c": 0.13882,
    "h": 114.1
  },
  "luminance": 0.38965
}

Semantic roles & 50–950 ramp

primary
#A5AF3A
secondary
#8782C3
accent
#4EDA5A
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A5AF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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