#AFAA24#AFAA24

#AFAA24 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.0% C 0.145 H 107.3°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#AFAA24
RGBrgb(175, 170, 36)
HSLhsl(58, 66%, 41%)
HSVhsv(58, 79%, 69%)
CMYKcmyk(0%, 2.9%, 79.4%, 31.4%)
CIE-LABlab(68.01, -12.95, 63.62)
CIE-LCHlch(68.01, 64.92, 101.50°)
OKLaboklab(71.98% -0.0429 0.1381)
OKLCHoklch(71.98% 0.145 107.3)
XYZxyz(32.3737, 37.9919, 7.2966)
Luminance0.3799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA24 #2429AF
analogous
#AF6524 #AFAA24 #6FAF24
triadic
#AFAA24 #24AFAA #AA24AF
tetradic
#AFAA24 #24AF65 #2429AF #AF246F
square
#AFAA24 #24AF65 #2429AF #AF246F
split-complementary
#AFAA24 #246FAF #6524AF
monochromatic
#49470F #7C791A #AFAA24 #D6D13A #E1DD6D

Accessibility & contrast

On white

2.44
#AFAA24 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#AFAA24 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA24
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA24#FFFFFF#000000##000000
##AFAA241.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#BBA830
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa24;
/* rgb */ color: rgb(175, 170, 36);
/* oklch */ color: oklch(72.0% 0.145 107.3);
Tailwind
colors: {
  custom: {
    50: '#cbc36b',
    500: '#afaa24',
    950: '#000000',
  },
}
SCSS
$custom: #afaa24;
$custom-light: #cbc36b;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa24",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 36
  },
  "hsl": {
    "h": 57.842,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.71983,
    "c": 0.14457,
    "h": 107.3
  },
  "luminance": 0.37991
}

Semantic roles & 50–950 ramp

primary
#AFAA24
secondary
#686BC7
accent
#45E93F
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAA24

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

Preview Lab → · Contrast checker → · Palette generator →

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