#AFA778#AFA778

#AFA778 is a light, moderate yellow. Relative luminance 0.381; OKLCH L 72.3% C 0.064 H 99.6°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#AFA778
RGBrgb(175, 167, 120)
HSLhsl(51, 26%, 58%)
HSVhsv(51, 31%, 69%)
CMYKcmyk(0%, 4.6%, 31.4%, 31.4%)
CIE-LABlab(68.10, -4.50, 25.40)
CIE-LCHlch(68.10, 25.80, 100.05°)
OKLaboklab(72.34% -0.0108 0.0635)
OKLCHoklch(72.34% 0.064 99.6)
XYZxyz(34.8884, 38.1083, 23.2834)
Luminance0.3811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA778 #7880AF
analogous
#AF8B78 #AFA778 #9BAF78
triadic
#AFA778 #78AFA7 #A778AF
tetradic
#AFA778 #78AF8B #7880AF #AF789B
square
#AFA778 #78AF8B #7880AF #AF789B
split-complementary
#AFA778 #789BAF #8B78AF
monochromatic
#6C6640 #938A57 #AFA778 #C6C09E #DDD9C5

Accessibility & contrast

On white

2.44
#AFA778 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#AFA778 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA778
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA778#FFFFFF#000000##000000
##AFA7781.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A475
Deuteranopia (green-blind)
#B2A77A
Tritanopia (blue-blind)
#B7A09B
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa778;
/* rgb */ color: rgb(175, 167, 120);
/* oklch */ color: oklch(72.3% 0.064 99.6);
Tailwind
colors: {
  custom: {
    50: '#c7c19f',
    500: '#afa778',
    950: '#000000',
  },
}
SCSS
$custom: #afa778;
$custom-light: #c7c19f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa778",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 120
  },
  "hsl": {
    "h": 51.273,
    "s": 25.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.72344,
    "c": 0.06444,
    "h": 99.6
  },
  "luminance": 0.38107
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA778

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

Preview Lab → · Contrast checker → · Palette generator →

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