#A5AF2A#A5AF2A

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

Color values

HEX#A5AF2A
RGBrgb(165, 175, 42)
HSLhsl(65, 61%, 43%)
HSVhsv(65, 76%, 69%)
CMYKcmyk(5.7%, 0%, 76%, 31.4%)
CIE-LABlab(68.63, -19.61, 62.01)
CIE-LCHlch(68.63, 65.04, 107.55°)
OKLaboklab(72.28% -0.0604 0.1361)
OKLCHoklch(72.28% 0.149 113.9)
XYZxyz(31.2659, 38.8271, 8.0374)
Luminance0.3883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF2A #342AAF
analogous
#AF762A #A5AF2A #63AF2A
triadic
#A5AF2A #2AA5AF #AF2AA5
tetradic
#A5AF2A #2AAF76 #342AAF #AF2A63
square
#A5AF2A #2AAF76 #342AAF #AF2A63
split-complementary
#A5AF2A #2A63AF #762AAF
monochromatic
#484C12 #767E1E #A5AF2A #C7D244 #D6DE75

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5AF2A#FFFFFF#000000##000000
##A5AF2A1.002.408.778.77
#FFFFFF2.401.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5af2a;
/* rgb */ color: rgb(165, 175, 42);
/* oklch */ color: oklch(72.3% 0.149 113.9);
Tailwind
colors: {
  custom: {
    50: '#c3c66f',
    500: '#a5af2a',
    950: '#000000',
  },
}
SCSS
$custom: #a5af2a;
$custom-light: #c3c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af2a",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 64.511,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72281,
    "c": 0.14893,
    "h": 113.9
  },
  "luminance": 0.38826
}

Semantic roles & 50–950 ramp

primary
#A5AF2A
secondary
#766FC6
accent
#43E450
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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