#AFBA52#AFBA52

#AFBA52 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.9% C 0.129 H 114.5°. Best body text is #000000 at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#AFBA52
RGBrgb(175, 186, 82)
HSLhsl(66, 43%, 53%)
HSVhsv(66, 56%, 73%)
CMYKcmyk(5.9%, 0%, 55.9%, 27.1%)
CIE-LABlab(72.79, -18.41, 50.48)
CIE-LCHlch(72.79, 53.73, 110.03°)
OKLaboklab(75.9% -0.0537 0.1175)
OKLCHoklch(75.9% 0.129 114.5)
XYZxyz(36.7618, 44.8415, 14.6997)
Luminance0.4484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA52 #5D52BA
analogous
#BA9152 #AFBA52 #7BBA52
triadic
#AFBA52 #52AFBA #BA52AF
tetradic
#AFBA52 #52BA91 #5D52BA #BA527B
square
#AFBA52 #52BA91 #5D52BA #BA527B
split-complementary
#AFBA52 #527BBA #9152BA
monochromatic
#61682A #8A943B #AFBA52 #C3CB7E #D7DDAA

Accessibility & contrast

On white

2.11
#AFBA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.97
#AFBA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA52
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA52#FFFFFF#000000##000000
##AFBA521.002.119.979.97
#FFFFFF2.111.0021.0021.00
#0000009.9721.001.001.00
##0000009.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B247
Deuteranopia (green-blind)
#C5B458
Tritanopia (blue-blind)
#B9B0A3
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afba52;
/* rgb */ color: rgb(175, 186, 82);
/* oklch */ color: oklch(75.9% 0.129 114.5);
Tailwind
colors: {
  custom: {
    50: '#c9ce86',
    500: '#afba52',
    950: '#000000',
  },
}
SCSS
$custom: #afba52;
$custom-light: #c9ce86;
$custom-dark: #000000;
JSON
{
  "hex": "#afba52",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 82
  },
  "hsl": {
    "h": 66.346,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.75904,
    "c": 0.12916,
    "h": 114.5
  },
  "luminance": 0.44841
}

Semantic roles & 50–950 ramp

primary
#AFBA52
secondary
#A29DCA
accent
#55D362
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFBA52

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

Preview Lab → · Contrast checker → · Palette generator →

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