#AFA57D#AFA57D

#AFA57D is a light, muted yellow. Relative luminance 0.375; OKLCH L 72.0% C 0.056 H 95.7°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#AFA57D
RGBrgb(175, 165, 125)
HSLhsl(48, 24%, 59%)
HSVhsv(48, 29%, 69%)
CMYKcmyk(0%, 5.7%, 28.6%, 31.4%)
CIE-LABlab(67.65, -2.76, 22.09)
CIE-LCHlch(67.65, 22.26, 97.12°)
OKLaboklab(72.02% -0.0056 0.0557)
OKLCHoklch(72.02% 0.056 95.7)
XYZxyz(34.8362, 37.5057, 24.8023)
Luminance0.3750 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA57D #7D87AF
analogous
#AF8C7D #AFA57D #A0AF7D
triadic
#AFA57D #7DAFA5 #A57DAF
tetradic
#AFA57D #7DAF8C #7D87AF #AF7DA0
square
#AFA57D #7DAF8C #7D87AF #AF7DA0
split-complementary
#AFA57D #7DA0AF #8C7DAF
monochromatic
#6E6544 #94885B #AFA57D #C6BFA3 #DED9C9

Accessibility & contrast

On white

2.47
#AFA57D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#AFA57D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA57D
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA57D#FFFFFF#000000##000000
##AFA57D1.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#ADA37A
Deuteranopia (green-blind)
#B0A67E
Tritanopia (blue-blind)
#B79F9A
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa57d;
/* rgb */ color: rgb(175, 165, 125);
/* oklch */ color: oklch(72.0% 0.056 95.7);
Tailwind
colors: {
  custom: {
    50: '#c7bfa3',
    500: '#afa57d',
    950: '#000000',
  },
}
SCSS
$custom: #afa57d;
$custom-light: #c7bfa3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa57d",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 125
  },
  "hsl": {
    "h": 48,
    "s": 23.81,
    "l": 58.824
  },
  "oklch": {
    "l": 0.72022,
    "c": 0.056,
    "h": 95.7
  },
  "luminance": 0.37505
}

Semantic roles & 50–950 ramp

primary
#AFA57D
secondary
#BABECE
accent
#79C068
background
#FCFBFA
surface
#F8F7F3
border
#D1D0CD
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA57D

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

Preview Lab → · Contrast checker → · Palette generator →

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