#AFAA57#AFAA57

#AFAA57 is a light, moderate yellow. Relative luminance 0.386; OKLCH L 72.4% C 0.106 H 105.7°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AFAA57
RGBrgb(175, 170, 87)
HSLhsl(57, 35%, 51%)
HSVhsv(57, 50%, 69%)
CMYKcmyk(0%, 2.9%, 50.3%, 31.4%)
CIE-LABlab(68.43, -9.75, 43.01)
CIE-LCHlch(68.43, 44.11, 102.77°)
OKLaboklab(72.44% -0.0285 0.1018)
OKLCHoklch(72.44% 0.106 105.7)
XYZxyz(33.7751, 38.5525, 14.6772)
Luminance0.3855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA57 #575CAF
analogous
#AF7E57 #AFAA57 #88AF57
triadic
#AFAA57 #57AFAA #AA57AF
tetradic
#AFAA57 #57AF7E #575CAF #AF5788
square
#AFAA57 #57AF7E #575CAF #AF5788
split-complementary
#AFAA57 #5788AF #7E57AF
monochromatic
#5F5C2D #888441 #AFAA57 #C3BF80 #D6D4AA

Accessibility & contrast

On white

2.41
#AFAA57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#AFAA57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA57
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA57#FFFFFF#000000##000000
##AFAA571.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A550
Deuteranopia (green-blind)
#B8A95B
Tritanopia (blue-blind)
#BAA197
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afaa57;
/* rgb */ color: rgb(175, 170, 87);
/* oklch */ color: oklch(72.4% 0.106 105.7);
Tailwind
colors: {
  custom: {
    50: '#c9c388',
    500: '#afaa57',
    950: '#000000',
  },
}
SCSS
$custom: #afaa57;
$custom-light: #c9c388;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa57",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 87
  },
  "hsl": {
    "h": 56.591,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.72442,
    "c": 0.10575,
    "h": 105.7
  },
  "luminance": 0.38552
}

Semantic roles & 50–950 ramp

primary
#AFAA57
secondary
#9EA0C4
accent
#63CC5C
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAA57

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

Preview Lab → · Contrast checker → · Palette generator →

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