#A5AF2F#A5AF2F

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

Color values

HEX#A5AF2F
RGBrgb(165, 175, 47)
HSLhsl(65, 58%, 44%)
HSVhsv(65, 73%, 69%)
CMYKcmyk(5.7%, 0%, 73.1%, 31.4%)
CIE-LABlab(68.65, -19.38, 60.35)
CIE-LCHlch(68.65, 63.38, 107.80°)
OKLaboklab(72.31% -0.0593 0.1335)
OKLCHoklch(72.31% 0.146 114)
XYZxyz(31.3610, 38.8651, 8.5384)
Luminance0.3886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF2F #392FAF
analogous
#AF792F #A5AF2F #65AF2F
triadic
#A5AF2F #2FA5AF #AF2FA5
tetradic
#A5AF2F #2FAF79 #392FAF #AF2F65
square
#A5AF2F #2FAF79 #392FAF #AF2F65
split-complementary
#A5AF2F #2F65AF #792FAF
monochromatic
#4A4F15 #787F22 #A5AF2F #C5CF4C #D4DC7C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5AF2F#FFFFFF#000000##000000
##A5AF2F1.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)
#BCA616
Deuteranopia (green-blind)
#BCA939
Tritanopia (blue-blind)
#B0A496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a5af2f;
/* rgb */ color: rgb(165, 175, 47);
/* oklch */ color: oklch(72.3% 0.146 114.0);
Tailwind
colors: {
  custom: {
    50: '#c3c671',
    500: '#a5af2f',
    950: '#000000',
  },
}
SCSS
$custom: #a5af2f;
$custom-light: #c3c671;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af2f",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 64.688,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.72312,
    "c": 0.14609,
    "h": 114
  },
  "luminance": 0.38865
}

Semantic roles & 50–950 ramp

primary
#A5AF2F
secondary
#7B75C4
accent
#47E153
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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