#AF5DDB#AF5DDB

#AF5DDB is a light, vivid violet. Relative luminance 0.221; OKLCH L 62.7% C 0.194 H 312.1°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF5DDB
RGBrgb(175, 93, 219)
HSLhsl(279, 64%, 61%)
HSVhsv(279, 58%, 86%)
CMYKcmyk(20.1%, 57.5%, 0%, 14.1%)
CIE-LABlab(54.09, 54.14, -51.32)
CIE-LCHlch(54.09, 74.60, 316.53°)
OKLaboklab(62.72% 0.1303 -0.144)
OKLCHoklch(62.72% 0.194 312.1)
XYZxyz(34.3775, 22.0580, 69.4508)
Luminance0.2206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DDB #89DB5D
analogous
#705DDB #AF5DDB #DB5DC8
triadic
#AF5DDB #DBAF5D #5DDBAF
tetradic
#AF5DDB #DB705D #89DB5D #5DC8DB
square
#AF5DDB #DB705D #89DB5D #5DC8DB
split-complementary
#AF5DDB #C8DB5D #5DDB70
monochromatic
#71229B #952ECD #AF5DDB #C88FE6 #E0C1F1

Accessibility & contrast

On white

3.88
#AF5DDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#AF5DDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DDB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DDB#FFFFFF#000000##000000
##AF5DDB1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#357DDF
Deuteranopia (green-blind)
#5583D8
Tritanopia (blue-blind)
#AA7393
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5ddb;
/* rgb */ color: rgb(175, 93, 219);
/* oklch */ color: oklch(62.7% 0.194 312.1);
Tailwind
colors: {
  custom: {
    50: '#ca8fe7',
    500: '#af5ddb',
    950: '#000000',
  },
}
SCSS
$custom: #af5ddb;
$custom-light: #ca8fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ddb",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 219
  },
  "hsl": {
    "h": 279.048,
    "s": 63.636,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62724,
    "c": 0.19421,
    "h": 312.1
  },
  "luminance": 0.22057
}

Semantic roles & 50–950 ramp

primary
#AF5DDB
secondary
#C3E2B2
accent
#CB1A58
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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