#AF5FDB#AF5FDB

#AF5FDB is a light, vivid violet. Relative luminance 0.224; OKLCH L 63.0% C 0.191 H 311.9°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AF5FDB
RGBrgb(175, 95, 219)
HSLhsl(279, 63%, 62%)
HSVhsv(279, 57%, 86%)
CMYKcmyk(20.1%, 56.6%, 0%, 14.1%)
CIE-LABlab(54.46, 53.14, -50.72)
CIE-LCHlch(54.46, 73.46, 316.33°)
OKLaboklab(63% 0.1278 -0.1422)
OKLCHoklch(63% 0.191 311.9)
XYZxyz(34.5553, 22.4137, 69.5100)
Luminance0.2241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FDB #8BDB5F
analogous
#715FDB #AF5FDB #DB5FC9
triadic
#AF5FDB #DBAF5F #5FDBAF
tetradic
#AF5FDB #DB715F #8BDB5F #5FC9DB
square
#AF5FDB #DB715F #8BDB5F #5FC9DB
split-complementary
#AF5FDB #C9DB5F #5FDB71
monochromatic
#71239C #962ECE #AF5FDB #C891E6 #E1C3F1

Accessibility & contrast

On white

3.83
#AF5FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#AF5FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FDB
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FDB#FFFFFF#000000##000000
##AF5FDB1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#397EDF
Deuteranopia (green-blind)
#5784D8
Tritanopia (blue-blind)
#AA7594
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5fdb;
/* rgb */ color: rgb(175, 95, 219);
/* oklch */ color: oklch(63.0% 0.191 311.9);
Tailwind
colors: {
  custom: {
    50: '#ca90e7',
    500: '#af5fdb',
    950: '#000000',
  },
}
SCSS
$custom: #af5fdb;
$custom-light: #ca90e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fdb",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 219
  },
  "hsl": {
    "h": 278.71,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.62998,
    "c": 0.19122,
    "h": 311.9
  },
  "luminance": 0.22413
}

Semantic roles & 50–950 ramp

primary
#AF5FDB
secondary
#C4E2B4
accent
#CB1A59
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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