#A5AF28#A5AF28

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

Color values

HEX#A5AF28
RGBrgb(165, 175, 40)
HSLhsl(64, 63%, 42%)
HSVhsv(64, 77%, 69%)
CMYKcmyk(5.7%, 0%, 77.1%, 31.4%)
CIE-LABlab(68.62, -19.70, 62.64)
CIE-LCHlch(68.62, 65.66, 107.46°)
OKLaboklab(72.27% -0.0608 0.1371)
OKLCHoklch(72.27% 0.15 113.9)
XYZxyz(31.2310, 38.8131, 7.8536)
Luminance0.3881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF28 #3228AF
analogous
#AF7528 #A5AF28 #62AF28
triadic
#A5AF28 #28A5AF #AF28A5
tetradic
#A5AF28 #28AF75 #3228AF #AF2862
square
#A5AF28 #28AF75 #3228AF #AF2862
split-complementary
#A5AF28 #2862AF #7528AF
monochromatic
#474B11 #767D1D #A5AF28 #C9D441 #D7DF73

Accessibility & contrast

On white

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

On black

8.76
#A5AF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AF28
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AF28#FFFFFF#000000##000000
##A5AF281.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5af28;
/* rgb */ color: rgb(165, 175, 40);
/* oklch */ color: oklch(72.3% 0.150 113.9);
Tailwind
colors: {
  custom: {
    50: '#c3c66e',
    500: '#a5af28',
    950: '#000000',
  },
}
SCSS
$custom: #a5af28;
$custom-light: #c3c66e;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af28",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 64.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.7227,
    "c": 0.14998,
    "h": 113.9
  },
  "luminance": 0.38812
}

Semantic roles & 50–950 ramp

primary
#A5AF28
secondary
#736DC6
accent
#42E64E
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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