#AF4BDC#AF4BDC

#AF4BDC is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.5% C 0.220 H 313.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF4BDC
RGBrgb(175, 75, 220)
HSLhsl(281, 67%, 58%)
HSVhsv(281, 66%, 86%)
CMYKcmyk(20.5%, 65.9%, 0%, 13.7%)
CIE-LABlab(51.05, 62.79, -56.74)
CIE-LCHlch(51.05, 84.63, 317.90°)
OKLaboklab(60.54% 0.1516 -0.1598)
OKLCHoklch(60.54% 0.22 313.5)
XYZxyz(33.1113, 19.3144, 69.6801)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BDC #78DC4B
analogous
#664BDC #AF4BDC #DC4BC1
triadic
#AF4BDC #DCAF4B #4BDCAF
tetradic
#AF4BDC #DC664B #78DC4B #4BC1DC
square
#AF4BDC #DC664B #78DC4B #4BC1DC
split-complementary
#AF4BDC #C1DC4B #4BDC66
monochromatic
#6C1C91 #9326C4 #AF4BDC #C67EE6 #DDB1F0

Accessibility & contrast

On white

4.32
#AF4BDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AF4BDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BDC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BDC#FFFFFF#000000##000000
##AF4BDC1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E0
Deuteranopia (green-blind)
#427CD9
Tritanopia (blue-blind)
#AB688D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4bdc;
/* rgb */ color: rgb(175, 75, 220);
/* oklch */ color: oklch(60.5% 0.220 313.5);
Tailwind
colors: {
  custom: {
    50: '#cb84e8',
    500: '#af4bdc',
    950: '#000000',
  },
}
SCSS
$custom: #af4bdc;
$custom-light: #cb84e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4bdc",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 220
  },
  "hsl": {
    "h": 281.379,
    "s": 67.442,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60543,
    "c": 0.22023,
    "h": 313.5
  },
  "luminance": 0.19313
}

Semantic roles & 50–950 ramp

primary
#AF4BDC
secondary
#B6DEA4
accent
#EA3D73
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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