#A5AF34#A5AF34

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

Color values

HEX#A5AF34
RGBrgb(165, 175, 52)
HSLhsl(65, 54%, 45%)
HSVhsv(65, 70%, 69%)
CMYKcmyk(5.7%, 0%, 70.3%, 31.4%)
CIE-LABlab(68.68, -19.12, 58.56)
CIE-LCHlch(68.68, 61.61, 108.08°)
OKLaboklab(72.35% -0.0582 0.1306)
OKLCHoklch(72.35% 0.143 114)
XYZxyz(31.4677, 38.9078, 9.1004)
Luminance0.3891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF34 #3E34AF
analogous
#AF7C34 #A5AF34 #68AF34
triadic
#A5AF34 #34A5AF #AF34A5
tetradic
#A5AF34 #34AF7C #3E34AF #AF3468
square
#A5AF34 #34AF7C #3E34AF #AF3468
split-complementary
#A5AF34 #3468AF #7C34AF
monochromatic
#4C5118 #798026 #A5AF34 #C2CC54 #D3DA83

Accessibility & contrast

On white

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

On black

8.78
#A5AF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AF34
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AF34#FFFFFF#000000##000000
##A5AF341.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5af34;
/* rgb */ color: rgb(165, 175, 52);
/* oklch */ color: oklch(72.3% 0.143 114.0);
Tailwind
colors: {
  custom: {
    50: '#c3c673',
    500: '#a5af34',
    950: '#000000',
  },
}
SCSS
$custom: #a5af34;
$custom-light: #c3c673;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af34",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 64.878,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72347,
    "c": 0.14296,
    "h": 114
  },
  "luminance": 0.38907
}

Semantic roles & 50–950 ramp

primary
#A5AF34
secondary
#817BC4
accent
#4ADE56
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A5AF34

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

Preview Lab → · Contrast checker → · Palette generator →

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