#AFA174#AFA174

#AFA174 is a light, moderate yellow. Relative luminance 0.359; OKLCH L 71.0% C 0.063 H 92.9°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#AFA174
RGBrgb(175, 161, 116)
HSLhsl(46, 27%, 57%)
HSVhsv(46, 34%, 69%)
CMYKcmyk(0%, 8%, 33.7%, 31.4%)
CIE-LABlab(66.42, -1.79, 25.32)
CIE-LCHlch(66.42, 25.39, 94.04°)
OKLaboklab(70.99% -0.0031 0.0632)
OKLCHoklch(70.99% 0.063 92.9)
XYZxyz(33.5769, 35.8656, 21.6736)
Luminance0.3587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA174 #7482AF
analogous
#AF8474 #AFA174 #A0AF74
triadic
#AFA174 #74AFA1 #A174AF
tetradic
#AFA174 #74AF84 #7482AF #AF74A0
square
#AFA174 #74AF84 #7482AF #AF74A0
split-complementary
#AFA174 #74A0AF #8474AF
monochromatic
#6B603E #928354 #AFA174 #C5BB9B #DCD6C2

Accessibility & contrast

On white

2.57
#AFA174 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#AFA174 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA174
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA174#FFFFFF#000000##000000
##AFA1741.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9F71
Deuteranopia (green-blind)
#AEA375
Tritanopia (blue-blind)
#B89A95
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa174;
/* rgb */ color: rgb(175, 161, 116);
/* oklch */ color: oklch(71.0% 0.063 92.9);
Tailwind
colors: {
  custom: {
    50: '#c7bc9c',
    500: '#afa174',
    950: '#000000',
  },
}
SCSS
$custom: #afa174;
$custom-light: #c7bc9c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa174",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 116
  },
  "hsl": {
    "h": 45.763,
    "s": 26.941,
    "l": 57.059
  },
  "oklch": {
    "l": 0.70991,
    "c": 0.06332,
    "h": 92.9
  },
  "luminance": 0.35865
}

Semantic roles & 50–950 ramp

primary
#AFA174
secondary
#B3B9CB
accent
#7BC365
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA174

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

Preview Lab → · Contrast checker → · Palette generator →

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