#AFA478#AFA478

#AFA478 is a light, moderate yellow. Relative luminance 0.370; OKLCH L 71.7% C 0.061 H 95.8°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#AFA478
RGBrgb(175, 164, 120)
HSLhsl(48, 26%, 58%)
HSVhsv(48, 31%, 69%)
CMYKcmyk(0%, 6.3%, 31.4%, 31.4%)
CIE-LABlab(67.29, -2.89, 24.32)
CIE-LCHlch(67.29, 24.49, 96.78°)
OKLaboklab(71.71% -0.0061 0.061)
OKLCHoklch(71.71% 0.061 95.8)
XYZxyz(34.3452, 37.0218, 23.1024)
Luminance0.3702 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA478 #7883AF
analogous
#AF8878 #AFA478 #9EAF78
triadic
#AFA478 #78AFA4 #A478AF
tetradic
#AFA478 #78AF88 #7883AF #AF789E
square
#AFA478 #78AF88 #7883AF #AF789E
split-complementary
#AFA478 #789EAF #8878AF
monochromatic
#6C6440 #938757 #AFA478 #C6BE9E #DDD8C5

Accessibility & contrast

On white

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

On black

8.40
#AFA478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA478
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA478#FFFFFF#000000##000000
##AFA4781.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#ADA275
Deuteranopia (green-blind)
#B0A579
Tritanopia (blue-blind)
#B79E98
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa478;
/* rgb */ color: rgb(175, 164, 120);
/* oklch */ color: oklch(71.7% 0.061 95.8);
Tailwind
colors: {
  custom: {
    50: '#c7be9f',
    500: '#afa478',
    950: '#000000',
  },
}
SCSS
$custom: #afa478;
$custom-light: #c7be9f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa478",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 120
  },
  "hsl": {
    "h": 48,
    "s": 25.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.71706,
    "c": 0.06128,
    "h": 95.8
  },
  "luminance": 0.37021
}

Semantic roles & 50–950 ramp

primary
#AFA478
secondary
#B6BBCC
accent
#78C266
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA478

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

Preview Lab → · Contrast checker → · Palette generator →

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