#AF54CB#AF54CB

#AF54CB is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.6% C 0.191 H 317.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF54CB
RGBrgb(175, 84, 203)
HSLhsl(286, 53%, 56%)
HSVhsv(286, 59%, 80%)
CMYKcmyk(13.8%, 58.6%, 0%, 20.4%)
CIE-LABlab(51.57, 55.22, -46.21)
CIE-LCHlch(51.57, 72.00, 320.07°)
OKLaboklab(60.6% 0.1411 -0.129)
OKLCHoklch(60.6% 0.191 317.6)
XYZxyz(31.6275, 19.7676, 58.6379)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54CB #70CB54
analogous
#7454CB #AF54CB #CB54AC
triadic
#AF54CB #CBAF54 #54CBAF
tetradic
#AF54CB #CB7454 #70CB54 #54ACCB
square
#AF54CB #CB7454 #70CB54 #54ACCB
split-complementary
#AF54CB #ACCB54 #54CB74
monochromatic
#6A267E #9135AD #AF54CB #C583D9 #DBB2E8

Accessibility & contrast

On white

4.24
#AF54CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AF54CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54CB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54CB#FFFFFF#000000##000000
##AF54CB1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3675CF
Deuteranopia (green-blind)
#587EC8
Tritanopia (blue-blind)
#AE6888
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af54cb;
/* rgb */ color: rgb(175, 84, 203);
/* oklch */ color: oklch(60.6% 0.191 317.6);
Tailwind
colors: {
  custom: {
    50: '#ca89db',
    500: '#af54cb',
    950: '#000000',
  },
}
SCSS
$custom: #af54cb;
$custom-light: #ca89db;
$custom-dark: #000000;
JSON
{
  "hex": "#af54cb",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 285.882,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60603,
    "c": 0.19122,
    "h": 317.6
  },
  "luminance": 0.19766
}

Semantic roles & 50–950 ramp

primary
#AF54CB
secondary
#B0D6A5
accent
#DD4B6D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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