#AFAD25#AFAD25

#AFAD25 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.7% C 0.147 H 108.7°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#AFAD25
RGBrgb(175, 173, 37)
HSLhsl(59, 65%, 42%)
HSVhsv(59, 79%, 69%)
CMYKcmyk(0%, 1.1%, 78.9%, 31.4%)
CIE-LABlab(68.85, -14.46, 64.06)
CIE-LCHlch(68.85, 65.67, 102.72°)
OKLaboklab(72.65% -0.047 0.1392)
OKLCHoklch(72.65% 0.147 108.7)
XYZxyz(32.9580, 39.1358, 7.5678)
Luminance0.3913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD25 #2527AF
analogous
#AF6825 #AFAD25 #6CAF25
triadic
#AFAD25 #25AFAD #AD25AF
tetradic
#AFAD25 #25AF68 #2527AF #AF256C
square
#AFAD25 #25AF68 #2527AF #AF256C
split-complementary
#AFAD25 #256CAF #6825AF
monochromatic
#4A4910 #7C7B1A #AFAD25 #D6D33C #E0DF6E

Accessibility & contrast

On white

2.38
#AFAD25 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#AFAD25 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD25
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD25#FFFFFF#000000##000000
##AFAD251.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA600
Deuteranopia (green-blind)
#BEAA31
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad25;
/* rgb */ color: rgb(175, 173, 37);
/* oklch */ color: oklch(72.7% 0.147 108.7);
Tailwind
colors: {
  custom: {
    50: '#cbc56c',
    500: '#afad25',
    950: '#000000',
  },
}
SCSS
$custom: #afad25;
$custom-light: #cbc56c;
$custom-dark: #000000;
JSON
{
  "hex": "#afad25",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 37
  },
  "hsl": {
    "h": 59.13,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.72651,
    "c": 0.14693,
    "h": 108.7
  },
  "luminance": 0.39135
}

Semantic roles & 50–950 ramp

primary
#AFAD25
secondary
#696AC7
accent
#42E840
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD25

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

Preview Lab → · Contrast checker → · Palette generator →

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