#AFA97B#AFA97B

#AFA97B is a light, moderate yellow. Relative luminance 0.389; OKLCH L 72.8% C 0.063 H 101.5°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#AFA97B
RGBrgb(175, 169, 123)
HSLhsl(53, 25%, 58%)
HSVhsv(53, 30%, 69%)
CMYKcmyk(0%, 3.4%, 29.7%, 31.4%)
CIE-LABlab(68.69, -5.17, 24.58)
CIE-LCHlch(68.69, 25.11, 101.89°)
OKLaboklab(72.83% -0.0126 0.0616)
OKLCHoklch(72.83% 0.063 101.5)
XYZxyz(35.4425, 38.9207, 24.3804)
Luminance0.3892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA97B #7B81AF
analogous
#AF8F7B #AFA97B #9BAF7B
triadic
#AFA97B #7BAFA9 #A97BAF
tetradic
#AFA97B #7BAF8F #7B81AF #AF7B9B
square
#AFA97B #7BAF8F #7B81AF #AF7B9B
split-complementary
#AFA97B #7B9BAF #8F7BAF
monochromatic
#6D6842 #938D59 #AFA97B #C6C2A1 #DDDBC7

Accessibility & contrast

On white

2.39
#AFA97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#AFA97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA97B
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA97B#FFFFFF#000000##000000
##AFA97B1.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A678
Deuteranopia (green-blind)
#B4A97D
Tritanopia (blue-blind)
#B7A39D
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa97b;
/* rgb */ color: rgb(175, 169, 123);
/* oklch */ color: oklch(72.8% 0.063 101.5);
Tailwind
colors: {
  custom: {
    50: '#c7c2a1',
    500: '#afa97b',
    950: '#000000',
  },
}
SCSS
$custom: #afa97b;
$custom-light: #c7c2a1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa97b",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 123
  },
  "hsl": {
    "h": 53.077,
    "s": 24.528,
    "l": 58.431
  },
  "oklch": {
    "l": 0.72831,
    "c": 0.06291,
    "h": 101.5
  },
  "luminance": 0.3892
}

Semantic roles & 50–950 ramp

primary
#AFA97B
secondary
#B9BBCD
accent
#71C167
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120F
muted
#82817E

Preview Lab

Preview with #AFA97B

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

Preview Lab → · Contrast checker → · Palette generator →

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