#A5AF26#A5AF26

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

Color values

HEX#A5AF26
RGBrgb(165, 175, 38)
HSLhsl(64, 64%, 42%)
HSVhsv(64, 78%, 69%)
CMYKcmyk(5.7%, 0%, 78.3%, 31.4%)
CIE-LABlab(68.61, -19.78, 63.24)
CIE-LCHlch(68.61, 66.26, 107.37°)
OKLaboklab(72.26% -0.0612 0.138)
OKLCHoklch(72.26% 0.151 113.9)
XYZxyz(31.1979, 38.7999, 7.6790)
Luminance0.3880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF26 #3026AF
analogous
#AF7526 #A5AF26 #60AF26
triadic
#A5AF26 #26A5AF #AF26A5
tetradic
#A5AF26 #26AF75 #3026AF #AF2660
square
#A5AF26 #26AF75 #3026AF #AF2660
split-complementary
#A5AF26 #2660AF #7526AF
monochromatic
#464A10 #767D1B #A5AF26 #CAD53D #D8E070

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5AF26#FFFFFF#000000##000000
##A5AF261.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: #a5af26;
/* rgb */ color: rgb(165, 175, 38);
/* oklch */ color: oklch(72.3% 0.151 113.9);
Tailwind
colors: {
  custom: {
    50: '#c3c66d',
    500: '#a5af26',
    950: '#000000',
  },
}
SCSS
$custom: #a5af26;
$custom-light: #c3c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af26",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 38
  },
  "hsl": {
    "h": 64.38,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.72259,
    "c": 0.15098,
    "h": 113.9
  },
  "luminance": 0.38799
}

Semantic roles & 50–950 ramp

primary
#A5AF26
secondary
#716AC7
accent
#40E74D
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A5AF26

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

Preview Lab → · Contrast checker → · Palette generator →

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