#AF5BDB#AF5BDB

#AF5BDB is a light, vivid violet. Relative luminance 0.217; OKLCH L 62.5% C 0.197 H 312.4°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF5BDB
RGBrgb(175, 91, 219)
HSLhsl(279, 64%, 61%)
HSVhsv(279, 58%, 86%)
CMYKcmyk(20.1%, 58.4%, 0%, 14.1%)
CIE-LABlab(53.72, 55.13, -51.91)
CIE-LCHlch(53.72, 75.72, 316.72°)
OKLaboklab(62.46% 0.1328 -0.1457)
OKLCHoklch(62.46% 0.197 312.4)
XYZxyz(34.2042, 21.7115, 69.3930)
Luminance0.2171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BDB #87DB5B
analogous
#6F5BDB #AF5BDB #DB5BC7
triadic
#AF5BDB #DBAF5B #5BDBAF
tetradic
#AF5BDB #DB6F5B #87DB5B #5BC7DB
square
#AF5BDB #DB6F5B #87DB5B #5BC7DB
split-complementary
#AF5BDB #C7DB5B #5BDB6F
monochromatic
#71229A #952DCC #AF5BDB #C78DE6 #E0BFF1

Accessibility & contrast

On white

3.93
#AF5BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#AF5BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BDB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BDB#FFFFFF#000000##000000
##AF5BDB1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#317CDF
Deuteranopia (green-blind)
#5382D8
Tritanopia (blue-blind)
#AA7293
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5bdb;
/* rgb */ color: rgb(175, 91, 219);
/* oklch */ color: oklch(62.5% 0.197 312.4);
Tailwind
colors: {
  custom: {
    50: '#ca8de7',
    500: '#af5bdb',
    950: '#000000',
  },
}
SCSS
$custom: #af5bdb;
$custom-light: #ca8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bdb",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 279.375,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.62455,
    "c": 0.19715,
    "h": 312.4
  },
  "luminance": 0.21711
}

Semantic roles & 50–950 ramp

primary
#AF5BDB
secondary
#C1E1B1
accent
#CC1A57
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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