#A5AF2D#A5AF2D

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

Color values

HEX#A5AF2D
RGBrgb(165, 175, 45)
HSLhsl(65, 59%, 43%)
HSVhsv(65, 74%, 69%)
CMYKcmyk(5.7%, 0%, 74.3%, 31.4%)
CIE-LABlab(68.64, -19.48, 61.03)
CIE-LCHlch(68.64, 64.06, 107.70°)
OKLaboklab(72.3% -0.0598 0.1346)
OKLCHoklch(72.3% 0.147 114)
XYZxyz(31.3216, 38.8494, 8.3308)
Luminance0.3885 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF2D #372DAF
analogous
#AF782D #A5AF2D #64AF2D
triadic
#A5AF2D #2DA5AF #AF2DA5
tetradic
#A5AF2D #2DAF78 #372DAF #AF2D64
square
#A5AF2D #2DAF78 #372DAF #AF2D64
split-complementary
#A5AF2D #2D64AF #782DAF
monochromatic
#494E14 #777E20 #A5AF2D #C6D049 #D5DD7A

Accessibility & contrast

On white

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

On black

8.77
#A5AF2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AF2D
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AF2D#FFFFFF#000000##000000
##A5AF2D1.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5af2d;
/* rgb */ color: rgb(165, 175, 45);
/* oklch */ color: oklch(72.3% 0.147 114.0);
Tailwind
colors: {
  custom: {
    50: '#c3c670',
    500: '#a5af2d',
    950: '#000000',
  },
}
SCSS
$custom: #a5af2d;
$custom-light: #c3c670;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af2d",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 64.615,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.723,
    "c": 0.14726,
    "h": 114
  },
  "luminance": 0.38849
}

Semantic roles & 50–950 ramp

primary
#A5AF2D
secondary
#7973C5
accent
#46E252
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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