#AFA474#AFA474

#AFA474 is a light, moderate yellow. Relative luminance 0.369; OKLCH L 71.6% C 0.066 H 96.8°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#AFA474
RGBrgb(175, 164, 116)
HSLhsl(49, 27%, 57%)
HSVhsv(49, 34%, 69%)
CMYKcmyk(0%, 6.3%, 33.7%, 31.4%)
CIE-LABlab(67.22, -3.41, 26.39)
CIE-LCHlch(67.22, 26.61, 97.35°)
OKLaboklab(71.63% -0.0078 0.0658)
OKLCHoklch(71.63% 0.066 96.8)
XYZxyz(34.1075, 36.9267, 21.8505)
Luminance0.3693 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA474 #747FAF
analogous
#AF8774 #AFA474 #9DAF74
triadic
#AFA474 #74AFA4 #A474AF
tetradic
#AFA474 #74AF87 #747FAF #AF749D
square
#AFA474 #74AF87 #747FAF #AF749D
split-complementary
#AFA474 #749DAF #8774AF
monochromatic
#6B633E #928654 #AFA474 #C5BD9B #DCD7C2

Accessibility & contrast

On white

2.50
#AFA474 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#AFA474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA474
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA474#FFFFFF#000000##000000
##AFA4741.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#ADA171
Deuteranopia (green-blind)
#B1A576
Tritanopia (blue-blind)
#B89D98
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa474;
/* rgb */ color: rgb(175, 164, 116);
/* oklch */ color: oklch(71.6% 0.066 96.8);
Tailwind
colors: {
  custom: {
    50: '#c7be9c',
    500: '#afa474',
    950: '#000000',
  },
}
SCSS
$custom: #afa474;
$custom-light: #c7be9c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa474",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 116
  },
  "hsl": {
    "h": 48.814,
    "s": 26.941,
    "l": 57.059
  },
  "oklch": {
    "l": 0.71626,
    "c": 0.06623,
    "h": 96.8
  },
  "luminance": 0.36926
}

Semantic roles & 50–950 ramp

primary
#AFA474
secondary
#B3B8CB
accent
#76C365
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA474

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

Preview Lab → · Contrast checker → · Palette generator →

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