#AFAA56#AFAA56

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

Color values

HEX#AFAA56
RGBrgb(175, 170, 86)
HSLhsl(57, 36%, 51%)
HSVhsv(57, 51%, 69%)
CMYKcmyk(0%, 2.9%, 50.9%, 31.4%)
CIE-LABlab(68.41, -9.84, 43.49)
CIE-LCHlch(68.41, 44.59, 102.75°)
OKLaboklab(72.43% -0.0289 0.1028)
OKLCHoklch(72.43% 0.107 105.7)
XYZxyz(33.7345, 38.5363, 14.4635)
Luminance0.3854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA56 #565BAF
analogous
#AF7D56 #AFAA56 #87AF56
triadic
#AFAA56 #56AFAA #AA56AF
tetradic
#AFAA56 #56AF7D #565BAF #AF5687
square
#AFAA56 #56AF7D #565BAF #AF5687
split-complementary
#AFAA56 #5687AF #7D56AF
monochromatic
#5E5B2D #888440 #AFAA56 #C3BF80 #D6D4A9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAA56#FFFFFF#000000##000000
##AFAA561.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)
#B6A54E
Deuteranopia (green-blind)
#B8A95A
Tritanopia (blue-blind)
#BAA197
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afaa56;
/* rgb */ color: rgb(175, 170, 86);
/* oklch */ color: oklch(72.4% 0.107 105.7);
Tailwind
colors: {
  custom: {
    50: '#c9c388',
    500: '#afaa56',
    950: '#000000',
  },
}
SCSS
$custom: #afaa56;
$custom-light: #c9c388;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa56",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 86
  },
  "hsl": {
    "h": 56.629,
    "s": 35.743,
    "l": 51.176
  },
  "oklch": {
    "l": 0.72429,
    "c": 0.10678,
    "h": 105.7
  },
  "luminance": 0.38535
}

Semantic roles & 50–950 ramp

primary
#AFAA56
secondary
#9D9FC4
accent
#62CC5C
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAA56

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

Preview Lab → · Contrast checker → · Palette generator →

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