#AFA46B#AFA46B

#AFA46B is a light, moderate yellow. Relative luminance 0.367; OKLCH L 71.5% C 0.077 H 98.6°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#AFA46B
RGBrgb(175, 164, 107)
HSLhsl(50, 30%, 55%)
HSVhsv(50, 39%, 69%)
CMYKcmyk(0%, 6.3%, 38.9%, 31.4%)
CIE-LABlab(67.07, -4.50, 31.02)
CIE-LCHlch(67.07, 31.35, 98.25°)
OKLaboklab(71.46% -0.0116 0.0762)
OKLCHoklch(71.46% 0.077 98.6)
XYZxyz(33.6091, 36.7274, 19.2257)
Luminance0.3673 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA46B #6B76AF
analogous
#AF826B #AFA46B #98AF6B
triadic
#AFA46B #6BAFA4 #A46BAF
tetradic
#AFA46B #6BAF82 #6B76AF #AF6B98
square
#AFA46B #6BAF82 #6B76AF #AF6B98
split-complementary
#AFA46B #6B98AF #826BAF
monochromatic
#686038 #8F854D #AFA46B #C4BC93 #DAD5BA

Accessibility & contrast

On white

2.52
#AFA46B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#AFA46B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA46B
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA46B#FFFFFF#000000##000000
##AFA46B1.002.528.358.35
#FFFFFF2.521.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AEA167
Deuteranopia (green-blind)
#B2A56D
Tritanopia (blue-blind)
#B99C96
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa46b;
/* rgb */ color: rgb(175, 164, 107);
/* oklch */ color: oklch(71.5% 0.077 98.6);
Tailwind
colors: {
  custom: {
    50: '#c8be96',
    500: '#afa46b',
    950: '#000000',
  },
}
SCSS
$custom: #afa46b;
$custom-light: #c8be96;
$custom-dark: #000000;
JSON
{
  "hex": "#afa46b",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 107
  },
  "hsl": {
    "h": 50.294,
    "s": 29.825,
    "l": 55.294
  },
  "oklch": {
    "l": 0.71459,
    "c": 0.07711,
    "h": 98.6
  },
  "luminance": 0.36726
}

Semantic roles & 50–950 ramp

primary
#AFA46B
secondary
#ADB1C9
accent
#72C662
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA46B

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

Preview Lab → · Contrast checker → · Palette generator →

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