#AFAA25#AFAA25

#AFAA25 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.0% C 0.144 H 107.3°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#AFAA25
RGBrgb(175, 170, 37)
HSLhsl(58, 65%, 42%)
HSVhsv(58, 79%, 69%)
CMYKcmyk(0%, 2.9%, 78.9%, 31.4%)
CIE-LABlab(68.02, -12.91, 63.32)
CIE-LCHlch(68.02, 64.63, 101.52°)
OKLaboklab(71.99% -0.0427 0.1376)
OKLCHoklch(71.99% 0.144 107.3)
XYZxyz(32.3892, 37.9981, 7.3782)
Luminance0.3800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA25 #252AAF
analogous
#AF6525 #AFAA25 #6FAF25
triadic
#AFAA25 #25AFAA #AA25AF
tetradic
#AFAA25 #25AF65 #252AAF #AF256F
square
#AFAA25 #25AF65 #252AAF #AF256F
split-complementary
#AFAA25 #256FAF #6525AF
monochromatic
#4A4810 #7C791A #AFAA25 #D6D03C #E0DC6E

Accessibility & contrast

On white

2.44
#AFAA25 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#AFAA25 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA25
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA25#FFFFFF#000000##000000
##AFAA251.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#BBA830
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa25;
/* rgb */ color: rgb(175, 170, 37);
/* oklch */ color: oklch(72.0% 0.144 107.3);
Tailwind
colors: {
  custom: {
    50: '#cbc36c',
    500: '#afaa25',
    950: '#000000',
  },
}
SCSS
$custom: #afaa25;
$custom-light: #cbc36c;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa25",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 37
  },
  "hsl": {
    "h": 57.826,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.71988,
    "c": 0.14409,
    "h": 107.3
  },
  "luminance": 0.37997
}

Semantic roles & 50–950 ramp

primary
#AFAA25
secondary
#696CC7
accent
#46E840
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAA25

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

Preview Lab → · Contrast checker → · Palette generator →

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