#AFAA55#AFAA55

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

Color values

HEX#AFAA55
RGBrgb(175, 170, 85)
HSLhsl(57, 36%, 51%)
HSVhsv(57, 51%, 69%)
CMYKcmyk(0%, 2.9%, 51.4%, 31.4%)
CIE-LABlab(68.40, -9.93, 43.97)
CIE-LCHlch(68.40, 45.08, 102.73°)
OKLaboklab(72.42% -0.0293 0.1037)
OKLCHoklch(72.42% 0.108 105.8)
XYZxyz(33.6945, 38.5203, 14.2528)
Luminance0.3852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA55 #555AAF
analogous
#AF7D55 #AFAA55 #87AF55
triadic
#AFAA55 #55AFAA #AA55AF
tetradic
#AFAA55 #55AF7D #555AAF #AF5587
square
#AFAA55 #55AF7D #555AAF #AF5587
split-complementary
#AFAA55 #5587AF #7D55AF
monochromatic
#5E5B2C #878340 #AFAA55 #C3BF7F #D6D4A8

Accessibility & contrast

On white

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

On black

8.70
#AFAA55 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA55
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA55#FFFFFF#000000##000000
##AFAA551.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A54D
Deuteranopia (green-blind)
#B9A959
Tritanopia (blue-blind)
#BAA097
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afaa55;
/* rgb */ color: rgb(175, 170, 85);
/* oklch */ color: oklch(72.4% 0.108 105.8);
Tailwind
colors: {
  custom: {
    50: '#c9c387',
    500: '#afaa55',
    950: '#000000',
  },
}
SCSS
$custom: #afaa55;
$custom-light: #c9c387;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa55",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 85
  },
  "hsl": {
    "h": 56.667,
    "s": 36,
    "l": 50.98
  },
  "oklch": {
    "l": 0.72416,
    "c": 0.10778,
    "h": 105.8
  },
  "luminance": 0.38519
}

Semantic roles & 50–950 ramp

primary
#AFAA55
secondary
#9C9EC4
accent
#62CC5C
background
#FCFBF8
surface
#F9F7F0
border
#D2D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAA55

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

Preview Lab → · Contrast checker → · Palette generator →

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