#AFAC23#AFAC23

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

Color values

HEX#AFAC23
RGBrgb(175, 172, 35)
HSLhsl(59, 67%, 41%)
HSVhsv(59, 80%, 69%)
CMYKcmyk(0%, 1.7%, 80%, 31.4%)
CIE-LABlab(68.56, -14.01, 64.39)
CIE-LCHlch(68.56, 65.90, 102.28°)
OKLaboklab(72.42% -0.046 0.1395)
OKLCHoklch(72.42% 0.147 108.2)
XYZxyz(32.7364, 38.7415, 7.3432)
Luminance0.3874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC23 #2326AF
analogous
#AF6623 #AFAC23 #6CAF23
triadic
#AFAC23 #23AFAC #AC23AF
tetradic
#AFAC23 #23AF66 #2326AF #AF236C
square
#AFAC23 #23AF66 #2326AF #AF236C
split-complementary
#AFAC23 #236CAF #6623AF
monochromatic
#49480F #7C7A19 #AFAC23 #D7D438 #E1DF6B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAC23#FFFFFF#000000##000000
##AFAC231.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)
#BDA92F
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac23;
/* rgb */ color: rgb(175, 172, 35);
/* oklch */ color: oklch(72.4% 0.147 108.2);
Tailwind
colors: {
  custom: {
    50: '#cbc46b',
    500: '#afac23',
    950: '#000000',
  },
}
SCSS
$custom: #afac23;
$custom-light: #cbc46b;
$custom-dark: #000000;
JSON
{
  "hex": "#afac23",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 35
  },
  "hsl": {
    "h": 58.714,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.7242,
    "c": 0.1469,
    "h": 108.2
  },
  "luminance": 0.3874
}

Semantic roles & 50–950 ramp

primary
#AFAC23
secondary
#6668C7
accent
#42EA3E
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAC23

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

Preview Lab → · Contrast checker → · Palette generator →

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