#AFAC28#AFAC28

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

Color values

HEX#AFAC28
RGBrgb(175, 172, 40)
HSLhsl(59, 63%, 42%)
HSVhsv(59, 77%, 69%)
CMYKcmyk(0%, 1.7%, 77.1%, 31.4%)
CIE-LABlab(68.59, -13.83, 62.91)
CIE-LCHlch(68.59, 64.41, 102.40°)
OKLaboklab(72.45% -0.045 0.1373)
OKLCHoklch(72.45% 0.144 108.2)
XYZxyz(32.8160, 38.7733, 7.7625)
Luminance0.3877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC28 #282BAF
analogous
#AF6928 #AFAC28 #6EAF28
triadic
#AFAC28 #28AFAC #AC28AF
tetradic
#AFAC28 #28AF69 #282BAF #AF286E
square
#AFAC28 #28AF69 #282BAF #AF286E
split-complementary
#AFAC28 #286EAF #6928AF
monochromatic
#4B4A11 #7D7B1D #AFAC28 #D4D041 #DFDC73

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAC28#FFFFFF#000000##000000
##AFAC281.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)
#BBA503
Deuteranopia (green-blind)
#BDA933
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac28;
/* rgb */ color: rgb(175, 172, 40);
/* oklch */ color: oklch(72.4% 0.144 108.2);
Tailwind
colors: {
  custom: {
    50: '#cbc46d',
    500: '#afac28',
    950: '#000000',
  },
}
SCSS
$custom: #afac28;
$custom-light: #cbc46d;
$custom-dark: #000000;
JSON
{
  "hex": "#afac28",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 40
  },
  "hsl": {
    "h": 58.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72446,
    "c": 0.14449,
    "h": 108.2
  },
  "luminance": 0.38772
}

Semantic roles & 50–950 ramp

primary
#AFAC28
secondary
#6D6FC6
accent
#46E642
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC28

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

Preview Lab → · Contrast checker → · Palette generator →

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