#AFAD40#AFAD40

#AFAD40 is a light, vivid yellow. Relative luminance 0.394; OKLCH L 72.8% C 0.130 H 108.2°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#AFAD40
RGBrgb(175, 173, 64)
HSLhsl(59, 46%, 47%)
HSVhsv(59, 63%, 69%)
CMYKcmyk(0%, 1.1%, 63.4%, 31.4%)
CIE-LABlab(69.02, -13.11, 54.35)
CIE-LCHlch(69.02, 55.90, 103.56°)
OKLaboklab(72.84% -0.0406 0.1234)
OKLCHoklch(72.84% 0.13 108.2)
XYZxyz(33.5493, 39.3723, 10.6818)
Luminance0.3937 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD40 #4042AF
analogous
#AF7640 #AFAD40 #7AAF40
triadic
#AFAD40 #40AFAD #AD40AF
tetradic
#AFAD40 #40AF76 #4042AF #AF407A
square
#AFAD40 #40AF76 #4042AF #AF407A
split-complementary
#AFAD40 #407AAF #7640AF
monochromatic
#55541F #828130 #AFAD40 #C7C565 #D7D692

Accessibility & contrast

On white

2.37
#AFAD40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#AFAD40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD40
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD40#FFFFFF#000000##000000
##AFAD401.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA632
Deuteranopia (green-blind)
#BCAA47
Tritanopia (blue-blind)
#BBA296
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad40;
/* rgb */ color: rgb(175, 173, 64);
/* oklch */ color: oklch(72.8% 0.130 108.2);
Tailwind
colors: {
  custom: {
    50: '#cac57a',
    500: '#afad40',
    950: '#000000',
  },
}
SCSS
$custom: #afad40;
$custom-light: #cac57a;
$custom-dark: #000000;
JSON
{
  "hex": "#afad40",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 64
  },
  "hsl": {
    "h": 58.919,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.72841,
    "c": 0.12986,
    "h": 108.2
  },
  "luminance": 0.39371
}

Semantic roles & 50–950 ramp

primary
#AFAD40
secondary
#8889C3
accent
#54D652
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAD40

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

Preview Lab → · Contrast checker → · Palette generator →

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