#AFBF52#AFBF52

#AFBF52 is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.0% C 0.135 H 116.7°. Best body text is #000000 at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#AFBF52
RGBrgb(175, 191, 82)
HSLhsl(69, 46%, 54%)
HSVhsv(69, 57%, 75%)
CMYKcmyk(8.4%, 0%, 57.1%, 25.1%)
CIE-LABlab(74.18, -20.90, 52.06)
CIE-LCHlch(74.18, 56.10, 111.88°)
OKLaboklab(77.02% -0.0607 0.1209)
OKLCHoklch(77.02% 0.135 116.7)
XYZxyz(37.8336, 46.9852, 15.0570)
Luminance0.4698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF52 #6252BF
analogous
#BF9852 #AFBF52 #78BF52
triadic
#AFBF52 #52AFBF #BF52AF
tetradic
#AFBF52 #52BF98 #6252BF #BF5278
square
#AFBF52 #52BF98 #6252BF #BF5278
split-complementary
#AFBF52 #5278BF #9852BF
monochromatic
#646E29 #8C9B39 #AFBF52 #C4D07F #D8E0AB

Accessibility & contrast

On white

2.02
#AFBF52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.40
#AFBF52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF52
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF52#FFFFFF#000000##000000
##AFBF521.002.0210.4010.40
#FFFFFF2.021.0021.0021.00
#00000010.4021.001.001.00
##00000010.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB646
Deuteranopia (green-blind)
#C9B759
Tritanopia (blue-blind)
#B9B5A7
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf52;
/* rgb */ color: rgb(175, 191, 82);
/* oklch */ color: oklch(77.0% 0.135 116.7);
Tailwind
colors: {
  custom: {
    50: '#c9d286',
    500: '#afbf52',
    950: '#000000',
  },
}
SCSS
$custom: #afbf52;
$custom-light: #c9d286;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf52",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 82
  },
  "hsl": {
    "h": 68.807,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.77019,
    "c": 0.13525,
    "h": 116.7
  },
  "luminance": 0.46985
}

Semantic roles & 50–950 ramp

primary
#AFBF52
secondary
#A69FCE
accent
#52D665
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFBF52

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

Preview Lab → · Contrast checker → · Palette generator →

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