#AFAB52#AFAB52

#AFAB52 is a light, moderate yellow. Relative luminance 0.388; OKLCH L 72.6% C 0.112 H 106.5°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#AFAB52
RGBrgb(175, 171, 82)
HSLhsl(57, 37%, 50%)
HSVhsv(57, 53%, 69%)
CMYKcmyk(0%, 2.3%, 53.1%, 31.4%)
CIE-LABlab(68.64, -10.72, 45.71)
CIE-LCHlch(68.64, 46.95, 103.20°)
OKLaboklab(72.6% -0.0318 0.1072)
OKLCHoklch(72.6% 0.112 106.5)
XYZxyz(33.7660, 38.8499, 13.7011)
Luminance0.3885 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB52 #5256AF
analogous
#AF7C52 #AFAB52 #85AF52
triadic
#AFAB52 #52AFAB #AB52AF
tetradic
#AFAB52 #52AF7C #5256AF #AF5285
square
#AFAB52 #52AF7C #5256AF #AF5285
split-complementary
#AFAB52 #5285AF #7C52AF
monochromatic
#5C5A2B #86833E #AFAB52 #C2BF7C #D6D4A6

Accessibility & contrast

On white

2.39
#AFAB52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#AFAB52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB52
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB52#FFFFFF#000000##000000
##AFAB521.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afab52;
/* rgb */ color: rgb(175, 171, 82);
/* oklch */ color: oklch(72.6% 0.112 106.5);
Tailwind
colors: {
  custom: {
    50: '#c9c385',
    500: '#afab52',
    950: '#000000',
  },
}
SCSS
$custom: #afab52;
$custom-light: #c9c385;
$custom-dark: #000000;
JSON
{
  "hex": "#afab52",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 82
  },
  "hsl": {
    "h": 57.419,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.72596,
    "c": 0.11184,
    "h": 106.5
  },
  "luminance": 0.38849
}

Semantic roles & 50–950 ramp

primary
#AFAB52
secondary
#9A9BC3
accent
#60CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAB52

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

Preview Lab → · Contrast checker → · Palette generator →

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