#AFA678#AFA678

#AFA678 is a light, moderate yellow. Relative luminance 0.377; OKLCH L 72.1% C 0.063 H 98.4°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA678
RGBrgb(175, 166, 120)
HSLhsl(50, 26%, 58%)
HSVhsv(50, 31%, 69%)
CMYKcmyk(0%, 5.1%, 31.4%, 31.4%)
CIE-LABlab(67.83, -3.96, 25.04)
CIE-LCHlch(67.83, 25.35, 99.00°)
OKLaboklab(72.13% -0.0092 0.0627)
OKLCHoklch(72.13% 0.063 98.4)
XYZxyz(34.7059, 37.7433, 23.2226)
Luminance0.3774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA678 #7881AF
analogous
#AF8A78 #AFA678 #9CAF78
triadic
#AFA678 #78AFA6 #A678AF
tetradic
#AFA678 #78AF8A #7881AF #AF789C
square
#AFA678 #78AF8A #7881AF #AF789C
split-complementary
#AFA678 #789CAF #8A78AF
monochromatic
#6C6540 #938957 #AFA678 #C6BF9E #DDD9C5

Accessibility & contrast

On white

2.46
#AFA678 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#AFA678 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA678
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA678#FFFFFF#000000##000000
##AFA6781.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA375
Deuteranopia (green-blind)
#B2A77A
Tritanopia (blue-blind)
#B79F9A
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa678;
/* rgb */ color: rgb(175, 166, 120);
/* oklch */ color: oklch(72.1% 0.063 98.4);
Tailwind
colors: {
  custom: {
    50: '#c7c09f',
    500: '#afa678',
    950: '#000000',
  },
}
SCSS
$custom: #afa678;
$custom-light: #c7c09f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa678",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 120
  },
  "hsl": {
    "h": 50.182,
    "s": 25.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.72131,
    "c": 0.06336,
    "h": 98.4
  },
  "luminance": 0.37742
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA678

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

Preview Lab → · Contrast checker → · Palette generator →

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