#AFA657#AFA657

#AFA657 is a light, moderate yellow. Relative luminance 0.371; OKLCH L 71.6% C 0.101 H 102.8°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#AFA657
RGBrgb(175, 166, 87)
HSLhsl(54, 35%, 51%)
HSVhsv(54, 50%, 69%)
CMYKcmyk(0%, 5.1%, 50.3%, 31.4%)
CIE-LABlab(67.33, -7.65, 41.71)
CIE-LCHlch(67.33, 42.40, 100.39°)
OKLaboklab(71.58% -0.0225 0.099)
OKLCHoklch(71.58% 0.101 102.8)
XYZxyz(33.0366, 37.0756, 14.4310)
Luminance0.3708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA657 #5760AF
analogous
#AF7A57 #AFA657 #8CAF57
triadic
#AFA657 #57AFA6 #A657AF
tetradic
#AFA657 #57AF7A #5760AF #AF578C
square
#AFA657 #57AF7A #5760AF #AF578C
split-complementary
#AFA657 #578CAF #7A57AF
monochromatic
#5F5A2D #888141 #AFA657 #C3BC80 #D6D2AA

Accessibility & contrast

On white

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

On black

8.41
#AFA657 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA657
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA657#FFFFFF#000000##000000
##AFA6571.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A150
Deuteranopia (green-blind)
#B5A65B
Tritanopia (blue-blind)
#BA9D94
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa657;
/* rgb */ color: rgb(175, 166, 87);
/* oklch */ color: oklch(71.6% 0.101 102.8);
Tailwind
colors: {
  custom: {
    50: '#c9c088',
    500: '#afa657',
    950: '#000000',
  },
}
SCSS
$custom: #afa657;
$custom-light: #c9c088;
$custom-dark: #000000;
JSON
{
  "hex": "#afa657",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 87
  },
  "hsl": {
    "h": 53.864,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.71575,
    "c": 0.10149,
    "h": 102.8
  },
  "luminance": 0.37075
}

Semantic roles & 50–950 ramp

primary
#AFA657
secondary
#9EA1C4
accent
#68CC5C
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA657

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

Preview Lab → · Contrast checker → · Palette generator →

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