#AFA528#AFA528

#AFA528 is a light, vivid yellow. Relative luminance 0.362; OKLCH L 70.9% C 0.138 H 104.6°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#AFA528
RGBrgb(175, 165, 40)
HSLhsl(56, 63%, 42%)
HSVhsv(56, 77%, 69%)
CMYKcmyk(0%, 5.7%, 77.1%, 31.4%)
CIE-LABlab(66.66, -10.19, 61.15)
CIE-LCHlch(66.66, 61.99, 99.46°)
OKLaboklab(70.91% -0.0349 0.1335)
OKLCHoklch(70.91% 0.138 104.6)
XYZxyz(31.5187, 36.1787, 7.3300)
Luminance0.3618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA528 #2832AF
analogous
#AF6228 #AFA528 #75AF28
triadic
#AFA528 #28AFA5 #A528AF
tetradic
#AFA528 #28AF62 #2832AF #AF2875
square
#AFA528 #28AF62 #2832AF #AF2875
split-complementary
#AFA528 #2875AF #6228AF
monochromatic
#4B4711 #7D761D #AFA528 #D4C941 #DFD773

Accessibility & contrast

On white

2.55
#AFA528 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#AFA528 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA528
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA528#FFFFFF#000000##000000
##AFA5281.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F08
Deuteranopia (green-blind)
#B8A532
Tritanopia (blue-blind)
#BC998E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa528;
/* rgb */ color: rgb(175, 165, 40);
/* oklch */ color: oklch(70.9% 0.138 104.6);
Tailwind
colors: {
  custom: {
    50: '#cbbf6d',
    500: '#afa528',
    950: '#000000',
  },
}
SCSS
$custom: #afa528;
$custom-light: #cbbf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa528",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 40
  },
  "hsl": {
    "h": 55.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.70907,
    "c": 0.13802,
    "h": 104.6
  },
  "luminance": 0.36177
}

Semantic roles & 50–950 ramp

primary
#AFA528
secondary
#6D73C6
accent
#4EE642
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA528

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

Preview Lab → · Contrast checker → · Palette generator →

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