#AFA551#AFA551

#AFA551 is a light, moderate yellow. Relative luminance 0.366; OKLCH L 71.3% C 0.107 H 102.6°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#AFA551
RGBrgb(175, 165, 81)
HSLhsl(54, 37%, 50%)
HSVhsv(54, 54%, 69%)
CMYKcmyk(0%, 5.7%, 53.7%, 31.4%)
CIE-LABlab(66.99, -7.65, 44.27)
CIE-LCHlch(66.99, 44.93, 99.80°)
OKLaboklab(71.28% -0.0232 0.104)
OKLCHoklch(71.28% 0.107 102.6)
XYZxyz(32.6205, 36.6194, 13.1329)
Luminance0.3662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA551 #515BAF
analogous
#AF7651 #AFA551 #8AAF51
triadic
#AFA551 #51AFA5 #A551AF
tetradic
#AFA551 #51AF76 #515BAF #AF518A
square
#AFA551 #51AF76 #515BAF #AF518A
split-complementary
#AFA551 #518AAF #7651AF
monochromatic
#5C562A #857E3D #AFA551 #C2BB7B #D6D0A5

Accessibility & contrast

On white

2.52
#AFA551 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#AFA551 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA551
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA551#FFFFFF#000000##000000
##AFA5511.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A049
Deuteranopia (green-blind)
#B5A555
Tritanopia (blue-blind)
#BB9B92
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa551;
/* rgb */ color: rgb(175, 165, 81);
/* oklch */ color: oklch(71.3% 0.107 102.6);
Tailwind
colors: {
  custom: {
    50: '#c9bf84',
    500: '#afa551',
    950: '#000000',
  },
}
SCSS
$custom: #afa551;
$custom-light: #c9bf84;
$custom-dark: #000000;
JSON
{
  "hex": "#afa551",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 81
  },
  "hsl": {
    "h": 53.617,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.7128,
    "c": 0.10654,
    "h": 102.6
  },
  "luminance": 0.36618
}

Semantic roles & 50–950 ramp

primary
#AFA551
secondary
#999DC3
accent
#67CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA551

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

Preview Lab → · Contrast checker → · Palette generator →

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