#AFAA51#AFAA51

#AFAA51 is a light, moderate yellow. Relative luminance 0.385; OKLCH L 72.4% C 0.112 H 105.9°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#AFAA51
RGBrgb(175, 170, 81)
HSLhsl(57, 37%, 50%)
HSVhsv(57, 54%, 69%)
CMYKcmyk(0%, 2.9%, 53.7%, 31.4%)
CIE-LABlab(68.36, -10.28, 45.86)
CIE-LCHlch(68.36, 47.00, 102.63°)
OKLaboklab(72.37% -0.0307 0.1074)
OKLCHoklch(72.37% 0.112 105.9)
XYZxyz(33.5401, 38.4585, 13.4394)
Luminance0.3846 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA51 #5156AF
analogous
#AF7B51 #AFAA51 #85AF51
triadic
#AFAA51 #51AFAA #AA51AF
tetradic
#AFAA51 #51AF7B #5156AF #AF5185
square
#AFAA51 #51AF7B #5156AF #AF5185
split-complementary
#AFAA51 #5185AF #7B51AF
monochromatic
#5C592A #85823D #AFAA51 #C2BE7B #D6D3A5

Accessibility & contrast

On white

2.42
#AFAA51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#AFAA51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA51
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA51#FFFFFF#000000##000000
##AFAA511.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A448
Deuteranopia (green-blind)
#B9A955
Tritanopia (blue-blind)
#BAA096
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afaa51;
/* rgb */ color: rgb(175, 170, 81);
/* oklch */ color: oklch(72.4% 0.112 105.9);
Tailwind
colors: {
  custom: {
    50: '#c9c384',
    500: '#afaa51',
    950: '#000000',
  },
}
SCSS
$custom: #afaa51;
$custom-light: #c9c384;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa51",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 81
  },
  "hsl": {
    "h": 56.809,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.72366,
    "c": 0.11174,
    "h": 105.9
  },
  "luminance": 0.38457
}

Semantic roles & 50–950 ramp

primary
#AFAA51
secondary
#999BC3
accent
#61CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAA51

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

Preview Lab → · Contrast checker → · Palette generator →

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