#AFA57F#AFA57F

#AFA57F is a light, muted yellow. Relative luminance 0.376; OKLCH L 72.1% C 0.053 H 95.1°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#AFA57F
RGBrgb(175, 165, 127)
HSLhsl(48, 23%, 59%)
HSVhsv(48, 27%, 69%)
CMYKcmyk(0%, 5.7%, 27.4%, 31.4%)
CIE-LABlab(67.69, -2.48, 21.05)
CIE-LCHlch(67.69, 21.19, 96.73°)
OKLaboklab(72.07% -0.0047 0.0533)
OKLCHoklch(72.07% 0.053 95.1)
XYZxyz(34.9653, 37.5573, 25.4819)
Luminance0.3756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA57F #7F89AF
analogous
#AF8D7F #AFA57F #A1AF7F
triadic
#AFA57F #7FAFA5 #A57FAF
tetradic
#AFA57F #7FAF8D #7F89AF #AF7FA1
square
#AFA57F #7FAF8D #7F89AF #AF7FA1
split-complementary
#AFA57F #7FA1AF #8D7FAF
monochromatic
#6F6645 #94895D #AFA57F #C7BFA5 #DEDACA

Accessibility & contrast

On white

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

On black

8.51
#AFA57F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA57F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA57F#FFFFFF#000000##000000
##AFA57F1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#ADA37D
Deuteranopia (green-blind)
#B0A680
Tritanopia (blue-blind)
#B79F9B
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa57f;
/* rgb */ color: rgb(175, 165, 127);
/* oklch */ color: oklch(72.1% 0.053 95.1);
Tailwind
colors: {
  custom: {
    50: '#c7bfa4',
    500: '#afa57f',
    950: '#000000',
  },
}
SCSS
$custom: #afa57f;
$custom-light: #c7bfa4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa57f",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 127
  },
  "hsl": {
    "h": 47.5,
    "s": 23.077,
    "l": 59.216
  },
  "oklch": {
    "l": 0.72065,
    "c": 0.05346,
    "h": 95.1
  },
  "luminance": 0.37557
}

Semantic roles & 50–950 ramp

primary
#AFA57F
secondary
#BCBFCE
accent
#7AC068
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA57F

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

Preview Lab → · Contrast checker → · Palette generator →

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