#AFA04D#AFA04D

#AFA04D is a light, moderate yellow. Relative luminance 0.348; OKLCH L 70.2% C 0.106 H 99.2°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#AFA04D
RGBrgb(175, 160, 77)
HSLhsl(51, 39%, 49%)
HSVhsv(51, 56%, 69%)
CMYKcmyk(0%, 8.6%, 56%, 31.4%)
CIE-LABlab(65.59, -5.32, 44.59)
CIE-LCHlch(65.59, 44.90, 96.81°)
OKLaboklab(70.15% -0.0169 0.1043)
OKLCHoklch(70.15% 0.106 99.2)
XYZxyz(31.5907, 34.7927, 12.0714)
Luminance0.3479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA04D #4D5CAF
analogous
#AF6F4D #AFA04D #8DAF4D
triadic
#AFA04D #4DAFA0 #A04DAF
tetradic
#AFA04D #4DAF6F #4D5CAF #AF4D8D
square
#AFA04D #4DAF6F #4D5CAF #AF4D8D
split-complementary
#AFA04D #4D8DAF #6F4DAF
monochromatic
#5A5228 #85793A #AFA04D #C3B776 #D6CDA1

Accessibility & contrast

On white

2.64
#AFA04D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#AFA04D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA04D
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA04D#FFFFFF#000000##000000
##AFA04D1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9C45
Deuteranopia (green-blind)
#B2A251
Tritanopia (blue-blind)
#BB968D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa04d;
/* rgb */ color: rgb(175, 160, 77);
/* oklch */ color: oklch(70.2% 0.106 99.2);
Tailwind
colors: {
  custom: {
    50: '#c9bb81',
    500: '#afa04d',
    950: '#000000',
  },
}
SCSS
$custom: #afa04d;
$custom-light: #c9bb81;
$custom-dark: #000000;
JSON
{
  "hex": "#afa04d",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 77
  },
  "hsl": {
    "h": 50.816,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.70152,
    "c": 0.10562,
    "h": 99.2
  },
  "luminance": 0.34791
}

Semantic roles & 50–950 ramp

primary
#AFA04D
secondary
#959CC3
accent
#6BCF59
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110A
muted
#82807C

Preview Lab

Preview with #AFA04D

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

Preview Lab → · Contrast checker → · Palette generator →

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