#AF6BDC#AF6BDC

#AF6BDC is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.8% C 0.174 H 310.2°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AF6BDC
RGBrgb(175, 107, 220)
HSLhsl(276, 62%, 64%)
HSVhsv(276, 51%, 86%)
CMYKcmyk(20.5%, 51.4%, 0%, 13.7%)
CIE-LABlab(56.88, 47.14, -47.45)
CIE-LCHlch(56.88, 66.89, 314.81°)
OKLaboklab(64.79% 0.1122 -0.1328)
OKLCHoklch(64.79% 0.174 310.2)
XYZxyz(35.8528, 24.7973, 70.5939)
Luminance0.2480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BDC #98DC6B
analogous
#776BDC #AF6BDC #DC6BD1
triadic
#AF6BDC #DCAF6B #6BDCAF
tetradic
#AF6BDC #DC776B #98DC6B #6BD1DC
square
#AF6BDC #DC776B #98DC6B #6BD1DC
split-complementary
#AF6BDC #D1DC6B #6BDC77
monochromatic
#7327A5 #943AD0 #AF6BDC #CA9CE8 #E5CEF3

Accessibility & contrast

On white

3.52
#AF6BDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#AF6BDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BDC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BDC#FFFFFF#000000##000000
##AF6BDC1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D85E0
Deuteranopia (green-blind)
#628AD9
Tritanopia (blue-blind)
#A97E9A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af6bdc;
/* rgb */ color: rgb(175, 107, 220);
/* oklch */ color: oklch(64.8% 0.174 310.2);
Tailwind
colors: {
  custom: {
    50: '#c997e7',
    500: '#af6bdc',
    950: '#000000',
  },
}
SCSS
$custom: #af6bdc;
$custom-light: #c997e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bdc",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 220
  },
  "hsl": {
    "h": 276.106,
    "s": 61.749,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64792,
    "c": 0.1738,
    "h": 310.2
  },
  "luminance": 0.24797
}

Semantic roles & 50–950 ramp

primary
#AF6BDC
secondary
#CDE5BE
accent
#C91C61
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF6BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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