#AFA524#AFA524

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

Color values

HEX#AFA524
RGBrgb(175, 165, 36)
HSLhsl(56, 66%, 41%)
HSVhsv(56, 79%, 69%)
CMYKcmyk(0%, 5.7%, 79.4%, 31.4%)
CIE-LABlab(66.64, -10.35, 62.39)
CIE-LCHlch(66.64, 63.25, 99.41°)
OKLaboklab(70.88% -0.0356 0.1354)
OKLCHoklch(70.88% 0.14 104.7)
XYZxyz(31.4542, 36.1529, 6.9901)
Luminance0.3615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA524 #242EAF
analogous
#AF5F24 #AFA524 #74AF24
triadic
#AFA524 #24AFA5 #A524AF
tetradic
#AFA524 #24AF5F #242EAF #AF2474
square
#AFA524 #24AF5F #242EAF #AF2474
split-complementary
#AFA524 #2474AF #5F24AF
monochromatic
#49450F #7C751A #AFA524 #D6CB3A #E1D86D

Accessibility & contrast

On white

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

On black

8.23
#AFA524 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA524
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA524#FFFFFF#000000##000000
##AFA5241.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F00
Deuteranopia (green-blind)
#B8A52F
Tritanopia (blue-blind)
#BD998D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa524;
/* rgb */ color: rgb(175, 165, 36);
/* oklch */ color: oklch(70.9% 0.140 104.7);
Tailwind
colors: {
  custom: {
    50: '#cbbf6b',
    500: '#afa524',
    950: '#000000',
  },
}
SCSS
$custom: #afa524;
$custom-light: #cbbf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa524",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 36
  },
  "hsl": {
    "h": 55.683,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.70885,
    "c": 0.14004,
    "h": 104.7
  },
  "luminance": 0.36152
}

Semantic roles & 50–950 ramp

primary
#AFA524
secondary
#686FC7
accent
#4BE93F
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA524

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

Preview Lab → · Contrast checker → · Palette generator →

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