#AFAC25#AFAC25

#AFAC25 is a light, vivid yellow. Relative luminance 0.388; 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#AFAC25
RGBrgb(175, 172, 37)
HSLhsl(59, 65%, 42%)
HSVhsv(59, 79%, 69%)
CMYKcmyk(0%, 1.7%, 78.9%, 31.4%)
CIE-LABlab(68.57, -13.94, 63.82)
CIE-LCHlch(68.57, 65.32, 102.33°)
OKLaboklab(72.43% -0.0456 0.1387)
OKLCHoklch(72.43% 0.146 108.2)
XYZxyz(32.7670, 38.7537, 7.5041)
Luminance0.3875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC25 #2528AF
analogous
#AF6725 #AFAC25 #6DAF25
triadic
#AFAC25 #25AFAC #AC25AF
tetradic
#AFAC25 #25AF67 #2528AF #AF256D
square
#AFAC25 #25AF67 #2528AF #AF256D
split-complementary
#AFAC25 #256DAF #6725AF
monochromatic
#4A4910 #7C7A1A #AFAC25 #D6D23C #E0DE6E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #afac25;
/* rgb */ color: rgb(175, 172, 37);
/* oklch */ color: oklch(72.4% 0.146 108.2);
Tailwind
colors: {
  custom: {
    50: '#cbc46c',
    500: '#afac25',
    950: '#000000',
  },
}
SCSS
$custom: #afac25;
$custom-light: #cbc46c;
$custom-dark: #000000;
JSON
{
  "hex": "#afac25",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 37
  },
  "hsl": {
    "h": 58.696,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.7243,
    "c": 0.14598,
    "h": 108.2
  },
  "luminance": 0.38753
}

Semantic roles & 50–950 ramp

primary
#AFAC25
secondary
#696BC7
accent
#43E840
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC25

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

Preview Lab → · Contrast checker → · Palette generator →

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