#AFA578#AFA578

#AFA578 is a light, moderate yellow. Relative luminance 0.374; OKLCH L 71.9% C 0.062 H 97.1°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#AFA578
RGBrgb(175, 165, 120)
HSLhsl(49, 26%, 58%)
HSVhsv(49, 31%, 69%)
CMYKcmyk(0%, 5.7%, 31.4%, 31.4%)
CIE-LABlab(67.56, -3.43, 24.68)
CIE-LCHlch(67.56, 24.92, 97.91°)
OKLaboklab(71.92% -0.0077 0.0618)
OKLCHoklch(71.92% 0.062 97.1)
XYZxyz(34.5248, 37.3812, 23.1623)
Luminance0.3738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA578 #7882AF
analogous
#AF8978 #AFA578 #9DAF78
triadic
#AFA578 #78AFA5 #A578AF
tetradic
#AFA578 #78AF89 #7882AF #AF789D
square
#AFA578 #78AF89 #7882AF #AF789D
split-complementary
#AFA578 #789DAF #8978AF
monochromatic
#6C6440 #938857 #AFA578 #C6BF9E #DDD8C5

Accessibility & contrast

On white

2.48
#AFA578 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#AFA578 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA578
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA578#FFFFFF#000000##000000
##AFA5781.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AEA275
Deuteranopia (green-blind)
#B1A67A
Tritanopia (blue-blind)
#B79F99
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa578;
/* rgb */ color: rgb(175, 165, 120);
/* oklch */ color: oklch(71.9% 0.062 97.1);
Tailwind
colors: {
  custom: {
    50: '#c7bf9f',
    500: '#afa578',
    950: '#000000',
  },
}
SCSS
$custom: #afa578;
$custom-light: #c7bf9f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa578",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 120
  },
  "hsl": {
    "h": 49.091,
    "s": 25.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.71918,
    "c": 0.0623,
    "h": 97.1
  },
  "luminance": 0.3738
}

Semantic roles & 50–950 ramp

primary
#AFA578
secondary
#B6BACC
accent
#77C266
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA578

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

Preview Lab → · Contrast checker → · Palette generator →

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