#AFA57B#AFA57B

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

Color values

HEX#AFA57B
RGBrgb(175, 165, 123)
HSLhsl(48, 25%, 58%)
HSVhsv(48, 30%, 69%)
CMYKcmyk(0%, 5.7%, 29.7%, 31.4%)
CIE-LABlab(67.62, -3.03, 23.13)
CIE-LCHlch(67.62, 23.32, 97.46°)
OKLaboklab(71.98% -0.0064 0.0582)
OKLCHoklch(71.98% 0.059 96.3)
XYZxyz(34.7098, 37.4551, 24.1362)
Luminance0.3745 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA57B #7B85AF
analogous
#AF8B7B #AFA57B #9FAF7B
triadic
#AFA57B #7BAFA5 #A57BAF
tetradic
#AFA57B #7BAF8B #7B85AF #AF7B9F
square
#AFA57B #7BAF8B #7B85AF #AF7B9F
split-complementary
#AFA57B #7B9FAF #8B7BAF
monochromatic
#6D6542 #938859 #AFA57B #C6BFA1 #DDD9C7

Accessibility & contrast

On white

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

On black

8.49
#AFA57B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA57B
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA57B#FFFFFF#000000##000000
##AFA57B1.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa57b;
/* rgb */ color: rgb(175, 165, 123);
/* oklch */ color: oklch(72.0% 0.059 96.3);
Tailwind
colors: {
  custom: {
    50: '#c7bfa1',
    500: '#afa57b',
    950: '#000000',
  },
}
SCSS
$custom: #afa57b;
$custom-light: #c7bfa1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa57b",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 123
  },
  "hsl": {
    "h": 48.462,
    "s": 24.528,
    "l": 58.431
  },
  "oklch": {
    "l": 0.7198,
    "c": 0.05853,
    "h": 96.3
  },
  "luminance": 0.37454
}

Semantic roles & 50–950 ramp

primary
#AFA57B
secondary
#B9BDCD
accent
#78C167
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120F
muted
#82817E

Preview Lab

Preview with #AFA57B

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

Preview Lab → · Contrast checker → · Palette generator →

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