#AF5FDD#AF5FDD

#AF5FDD is a light, vivid violet. Relative luminance 0.225; OKLCH L 63.1% C 0.193 H 311.4°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF5FDD
RGBrgb(175, 95, 221)
HSLhsl(278, 65%, 62%)
HSVhsv(278, 57%, 87%)
CMYKcmyk(20.8%, 57%, 0%, 13.3%)
CIE-LABlab(54.57, 53.57, -51.68)
CIE-LCHlch(54.57, 74.43, 316.03°)
OKLaboklab(63.12% 0.1279 -0.145)
OKLCHoklch(63.12% 0.193 311.4)
XYZxyz(34.8202, 22.5196, 70.9050)
Luminance0.2252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FDD #8DDD5F
analogous
#705FDD #AF5FDD #DD5FCC
triadic
#AF5FDD #DDAF5F #5FDDAF
tetradic
#AF5FDD #DD705F #8DDD5F #5FCCDD
square
#AF5FDD #DD705F #8DDD5F #5FCCDD
split-complementary
#AF5FDD #CCDD5F #5FDD70
monochromatic
#7222A0 #962DD2 #AF5FDD #C891E8 #E1C4F2

Accessibility & contrast

On white

3.82
#AF5FDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#AF5FDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FDD
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FDD#FFFFFF#000000##000000
##AF5FDD1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#377FE1
Deuteranopia (green-blind)
#5584DA
Tritanopia (blue-blind)
#AA7695
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5fdd;
/* rgb */ color: rgb(175, 95, 221);
/* oklch */ color: oklch(63.1% 0.193 311.4);
Tailwind
colors: {
  custom: {
    50: '#ca90e8',
    500: '#af5fdd',
    950: '#000000',
  },
}
SCSS
$custom: #af5fdd;
$custom-light: #ca90e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fdd",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 221
  },
  "hsl": {
    "h": 278.095,
    "s": 64.948,
    "l": 61.961
  },
  "oklch": {
    "l": 0.63115,
    "c": 0.19334,
    "h": 311.4
  },
  "luminance": 0.22519
}

Semantic roles & 50–950 ramp

primary
#AF5FDD
secondary
#C6E3B5
accent
#CD195A
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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