#AFA73F#AFA73F

#AFA73F is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.5% C 0.125 H 104.9°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#AFA73F
RGBrgb(175, 167, 63)
HSLhsl(56, 47%, 47%)
HSVhsv(56, 64%, 69%)
CMYKcmyk(0%, 4.6%, 64%, 31.4%)
CIE-LABlab(67.36, -10.05, 53.02)
CIE-LCHlch(67.36, 53.96, 100.73°)
OKLaboklab(71.52% -0.0321 0.1204)
OKLCHoklch(71.52% 0.125 104.9)
XYZxyz(32.3963, 37.1114, 10.1584)
Luminance0.3711 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA73F #3F47AF
analogous
#AF6F3F #AFA73F #7FAF3F
triadic
#AFA73F #3FAFA7 #A73FAF
tetradic
#AFA73F #3FAF6F #3F47AF #AF3F7F
square
#AFA73F #3FAF6F #3F47AF #AF3F7F
split-complementary
#AFA73F #3F7FAF #6F3FAF
monochromatic
#55511F #827C2F #AFA73F #C7C064 #D7D291

Accessibility & contrast

On white

2.49
#AFA73F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#AFA73F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA73F
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA73F#FFFFFF#000000##000000
##AFA73F1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A132
Deuteranopia (green-blind)
#B8A645
Tritanopia (blue-blind)
#BB9C91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa73f;
/* rgb */ color: rgb(175, 167, 63);
/* oklch */ color: oklch(71.5% 0.125 104.9);
Tailwind
colors: {
  custom: {
    50: '#cac079',
    500: '#afa73f',
    950: '#000000',
  },
}
SCSS
$custom: #afa73f;
$custom-light: #cac079;
$custom-dark: #000000;
JSON
{
  "hex": "#afa73f",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 63
  },
  "hsl": {
    "h": 55.714,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.71517,
    "c": 0.12459,
    "h": 104.9
  },
  "luminance": 0.3711
}

Semantic roles & 50–950 ramp

primary
#AFA73F
secondary
#878BC3
accent
#5BD751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA73F

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

Preview Lab → · Contrast checker → · Palette generator →

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