#A5AF27#A5AF27

#A5AF27 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#A5AF27
RGBrgb(165, 175, 39)
HSLhsl(64, 64%, 42%)
HSVhsv(64, 78%, 69%)
CMYKcmyk(5.7%, 0%, 77.7%, 31.4%)
CIE-LABlab(68.61, -19.74, 62.94)
CIE-LCHlch(68.61, 65.96, 107.41°)
OKLaboklab(72.27% -0.061 0.1376)
OKLCHoklch(72.27% 0.151 113.9)
XYZxyz(31.2142, 38.8064, 7.7651)
Luminance0.3881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF27 #3127AF
analogous
#AF7527 #A5AF27 #61AF27
triadic
#A5AF27 #27A5AF #AF27A5
tetradic
#A5AF27 #27AF75 #3127AF #AF2761
square
#A5AF27 #27AF75 #3127AF #AF2761
split-complementary
#A5AF27 #2761AF #7527AF
monochromatic
#474B11 #767D1C #A5AF27 #C9D43F #D7DF71

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5AF27#FFFFFF#000000##000000
##A5AF271.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)
#BCA600
Deuteranopia (green-blind)
#BCA933
Tritanopia (blue-blind)
#B0A496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a5af27;
/* rgb */ color: rgb(165, 175, 39);
/* oklch */ color: oklch(72.3% 0.150 113.9);
Tailwind
colors: {
  custom: {
    50: '#c3c66d',
    500: '#a5af27',
    950: '#000000',
  },
}
SCSS
$custom: #a5af27;
$custom-light: #c3c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af27",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 64.412,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.72265,
    "c": 0.1505,
    "h": 113.9
  },
  "luminance": 0.38806
}

Semantic roles & 50–950 ramp

primary
#A5AF27
secondary
#726BC6
accent
#41E74D
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A5AF27

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

Preview Lab → · Contrast checker → · Palette generator →

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