#AFAC24#AFAC24

#AFAC24 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.4% C 0.146 H 108.2°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#AFAC24
RGBrgb(175, 172, 36)
HSLhsl(59, 66%, 41%)
HSVhsv(59, 79%, 69%)
CMYKcmyk(0%, 1.7%, 79.4%, 31.4%)
CIE-LABlab(68.57, -13.98, 64.11)
CIE-LCHlch(68.57, 65.61, 102.30°)
OKLaboklab(72.43% -0.0458 0.1391)
OKLCHoklch(72.43% 0.146 108.2)
XYZxyz(32.7515, 38.7475, 7.4225)
Luminance0.3875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC24 #2427AF
analogous
#AF6724 #AFAC24 #6DAF24
triadic
#AFAC24 #24AFAC #AC24AF
tetradic
#AFAC24 #24AF67 #2427AF #AF246D
square
#AFAC24 #24AF67 #2427AF #AF246D
split-complementary
#AFAC24 #246DAF #6724AF
monochromatic
#49480F #7C7A1A #AFAC24 #D6D33A #E1DE6D

Accessibility & contrast

On white

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

On black

8.75
#AFAC24 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC24
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC24#FFFFFF#000000##000000
##AFAC241.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA500
Deuteranopia (green-blind)
#BDA930
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac24;
/* rgb */ color: rgb(175, 172, 36);
/* oklch */ color: oklch(72.4% 0.146 108.2);
Tailwind
colors: {
  custom: {
    50: '#cbc46c',
    500: '#afac24',
    950: '#000000',
  },
}
SCSS
$custom: #afac24;
$custom-light: #cbc46c;
$custom-dark: #000000;
JSON
{
  "hex": "#afac24",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 36
  },
  "hsl": {
    "h": 58.705,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72425,
    "c": 0.14645,
    "h": 108.2
  },
  "luminance": 0.38746
}

Semantic roles & 50–950 ramp

primary
#AFAC24
secondary
#686AC7
accent
#43E93F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAC24

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

Preview Lab → · Contrast checker → · Palette generator →

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