#AFA057#AFA057

#AFA057 is a light, moderate yellow. Relative luminance 0.349; OKLCH L 70.3% C 0.096 H 98.0°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#AFA057
RGBrgb(175, 160, 87)
HSLhsl(50, 35%, 51%)
HSVhsv(50, 50%, 69%)
CMYKcmyk(0%, 8.6%, 50.3%, 31.4%)
CIE-LABlab(65.71, -4.45, 39.74)
CIE-LCHlch(65.71, 39.99, 96.39°)
OKLaboklab(70.28% -0.0133 0.0947)
OKLCHoklch(70.28% 0.096 98)
XYZxyz(31.9713, 34.9449, 14.0759)
Luminance0.3494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA057 #5766AF
analogous
#AF7457 #AFA057 #92AF57
triadic
#AFA057 #57AFA0 #A057AF
tetradic
#AFA057 #57AF74 #5766AF #AF5792
square
#AFA057 #57AF74 #5766AF #AF5792
split-complementary
#AFA057 #5792AF #7457AF
monochromatic
#5F562D #887C41 #AFA057 #C3B780 #D6CFAA

Accessibility & contrast

On white

2.63
#AFA057 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#AFA057 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA057
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA057#FFFFFF#000000##000000
##AFA0571.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9D51
Deuteranopia (green-blind)
#B1A25A
Tritanopia (blue-blind)
#BB978F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa057;
/* rgb */ color: rgb(175, 160, 87);
/* oklch */ color: oklch(70.3% 0.096 98.0);
Tailwind
colors: {
  custom: {
    50: '#c9bb88',
    500: '#afa057',
    950: '#000000',
  },
}
SCSS
$custom: #afa057;
$custom-light: #c9bb88;
$custom-dark: #000000;
JSON
{
  "hex": "#afa057",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 87
  },
  "hsl": {
    "h": 49.773,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.70284,
    "c": 0.09558,
    "h": 98
  },
  "luminance": 0.34944
}

Semantic roles & 50–950 ramp

primary
#AFA057
secondary
#9EA4C4
accent
#6FCC5C
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13110B
muted
#82807C

Preview Lab

Preview with #AFA057

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

Preview Lab → · Contrast checker → · Palette generator →

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