#AFBE52#AFBE52

#AFBE52 is a light, vivid yellow. Relative luminance 0.466; OKLCH L 76.8% C 0.134 H 116.3°. Best body text is #000000 at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#AFBE52
RGBrgb(175, 190, 82)
HSLhsl(68, 45%, 53%)
HSVhsv(68, 57%, 75%)
CMYKcmyk(7.9%, 0%, 56.8%, 25.5%)
CIE-LABlab(73.90, -20.41, 51.74)
CIE-LCHlch(73.90, 55.62, 111.52°)
OKLaboklab(76.8% -0.0593 0.1202)
OKLCHoklch(76.8% 0.134 116.3)
XYZxyz(37.6163, 46.5505, 14.9845)
Luminance0.4655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBE52 #6152BE
analogous
#BE9752 #AFBE52 #79BE52
triadic
#AFBE52 #52AFBE #BE52AF
tetradic
#AFBE52 #52BE97 #6152BE #BE5279
square
#AFBE52 #52BE97 #6152BE #BE5279
split-complementary
#AFBE52 #5279BE #9752BE
monochromatic
#636D29 #8C993A #AFBE52 #C4CF7E #D8DFAB

Accessibility & contrast

On white

2.04
#AFBE52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.31
#AFBE52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBE52
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBE52#FFFFFF#000000##000000
##AFBE521.002.0410.3110.31
#FFFFFF2.041.0021.0021.00
#00000010.3121.001.001.00
##00000010.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB547
Deuteranopia (green-blind)
#C9B659
Tritanopia (blue-blind)
#B9B4A6
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbe52;
/* rgb */ color: rgb(175, 190, 82);
/* oklch */ color: oklch(76.8% 0.134 116.3);
Tailwind
colors: {
  custom: {
    50: '#c9d186',
    500: '#afbe52',
    950: '#000000',
  },
}
SCSS
$custom: #afbe52;
$custom-light: #c9d186;
$custom-dark: #000000;
JSON
{
  "hex": "#afbe52",
  "rgb": {
    "r": 175,
    "g": 190,
    "b": 82
  },
  "hsl": {
    "h": 68.333,
    "s": 45.378,
    "l": 53.333
  },
  "oklch": {
    "l": 0.76795,
    "c": 0.13402,
    "h": 116.3
  },
  "luminance": 0.4655
}

Semantic roles & 50–950 ramp

primary
#AFBE52
secondary
#A59FCD
accent
#53D565
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFBE52

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

Preview Lab → · Contrast checker → · Palette generator →

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