#AFAF24#AFAF24

#AFAF24 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.1% C 0.149 H 109.6°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#AFAF24
RGBrgb(175, 175, 36)
HSLhsl(60, 66%, 41%)
HSVhsv(60, 79%, 69%)
CMYKcmyk(0%, 0%, 79.4%, 31.4%)
CIE-LABlab(69.40, -15.52, 64.84)
CIE-LCHlch(69.40, 66.67, 103.46°)
OKLaboklab(73.09% -0.0501 0.1407)
OKLCHoklch(73.09% 0.149 109.6)
XYZxyz(33.3289, 39.9023, 7.6150)
Luminance0.3990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF24 #2424AF
analogous
#AF6A24 #AFAF24 #6AAF24
triadic
#AFAF24 #24AFAF #AF24AF
tetradic
#AFAF24 #24AF6A #2424AF #AF246A
square
#AFAF24 #24AF6A #2424AF #AF246A
split-complementary
#AFAF24 #246AAF #6A24AF
monochromatic
#49490F #7C7C1A #AFAF24 #D6D63A #E1E16D

Accessibility & contrast

On white

2.34
#AFAF24 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#AFAF24 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF24
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF24#FFFFFF#000000##000000
##AFAF241.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BFAB31
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afaf24;
/* rgb */ color: rgb(175, 175, 36);
/* oklch */ color: oklch(73.1% 0.149 109.6);
Tailwind
colors: {
  custom: {
    50: '#cbc66c',
    500: '#afaf24',
    950: '#000000',
  },
}
SCSS
$custom: #afaf24;
$custom-light: #cbc66c;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf24",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 36
  },
  "hsl": {
    "h": 60,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.73089,
    "c": 0.14932,
    "h": 109.6
  },
  "luminance": 0.39901
}

Semantic roles & 50–950 ramp

primary
#AFAF24
secondary
#6868C7
accent
#3FE93F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #AFAF24

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

Preview Lab → · Contrast checker → · Palette generator →

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