#AFA924#AFA924

#AFA924 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 71.8% C 0.144 H 106.8°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#AFA924
RGBrgb(175, 169, 36)
HSLhsl(57, 66%, 41%)
HSVhsv(57, 79%, 69%)
CMYKcmyk(0%, 3.4%, 79.4%, 31.4%)
CIE-LABlab(67.74, -12.43, 63.37)
CIE-LCHlch(67.74, 64.58, 101.10°)
OKLaboklab(71.76% -0.0415 0.1375)
OKLCHoklch(71.76% 0.144 106.8)
XYZxyz(32.1870, 37.6185, 7.2344)
Luminance0.3762 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA924 #242AAF
analogous
#AF6424 #AFA924 #70AF24
triadic
#AFA924 #24AFA9 #A924AF
tetradic
#AFA924 #24AF64 #242AAF #AF2470
square
#AFA924 #24AF64 #242AAF #AF2470
split-complementary
#AFA924 #2470AF #6424AF
monochromatic
#49470F #7C781A #AFA924 #D6D03A #E1DC6D

Accessibility & contrast

On white

2.46
#AFA924 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#AFA924 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA924
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA924#FFFFFF#000000##000000
##AFA9241.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#BBA730
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa924;
/* rgb */ color: rgb(175, 169, 36);
/* oklch */ color: oklch(71.8% 0.144 106.8);
Tailwind
colors: {
  custom: {
    50: '#cbc26b',
    500: '#afa924',
    950: '#000000',
  },
}
SCSS
$custom: #afa924;
$custom-light: #cbc26b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa924",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 36
  },
  "hsl": {
    "h": 57.41,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.71763,
    "c": 0.14364,
    "h": 106.8
  },
  "luminance": 0.37617
}

Semantic roles & 50–950 ramp

primary
#AFA924
secondary
#686CC7
accent
#46E93F
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA924

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

Preview Lab → · Contrast checker → · Palette generator →

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