#AFA523#AFA523

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

Color values

HEX#AFA523
RGBrgb(175, 165, 35)
HSLhsl(56, 67%, 41%)
HSVhsv(56, 80%, 69%)
CMYKcmyk(0%, 5.7%, 80%, 31.4%)
CIE-LABlab(66.63, -10.38, 62.69)
CIE-LCHlch(66.63, 63.54, 99.40°)
OKLaboklab(70.88% -0.0358 0.1359)
OKLCHoklch(70.88% 0.141 104.8)
XYZxyz(31.4391, 36.1469, 6.9108)
Luminance0.3615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA523 #232DAF
analogous
#AF5F23 #AFA523 #73AF23
triadic
#AFA523 #23AFA5 #A523AF
tetradic
#AFA523 #23AF5F #232DAF #AF2373
square
#AFA523 #23AF5F #232DAF #AF2373
split-complementary
#AFA523 #2373AF #5F23AF
monochromatic
#49450F #7C7519 #AFA523 #D7CC38 #E1D96B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA523#FFFFFF#000000##000000
##AFA5231.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)
#B8A52E
Tritanopia (blue-blind)
#BD998D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa523;
/* rgb */ color: rgb(175, 165, 35);
/* oklch */ color: oklch(70.9% 0.141 104.8);
Tailwind
colors: {
  custom: {
    50: '#cbbf6a',
    500: '#afa523',
    950: '#000000',
  },
}
SCSS
$custom: #afa523;
$custom-light: #cbbf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa523",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 35
  },
  "hsl": {
    "h": 55.714,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.7088,
    "c": 0.14051,
    "h": 104.8
  },
  "luminance": 0.36146
}

Semantic roles & 50–950 ramp

primary
#AFA523
secondary
#666DC7
accent
#4AEA3E
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA523

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

Preview Lab → · Contrast checker → · Palette generator →

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