#AF5BDF#AF5BDF

#AF5BDF is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.7% C 0.201 H 311.3°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF5BDF
RGBrgb(175, 91, 223)
HSLhsl(278, 67%, 62%)
HSVhsv(278, 59%, 87%)
CMYKcmyk(21.5%, 59.2%, 0%, 12.5%)
CIE-LABlab(53.95, 55.99, -53.81)
CIE-LCHlch(53.95, 77.65, 316.14°)
OKLaboklab(62.69% 0.1329 -0.1512)
OKLCHoklch(62.69% 0.201 311.3)
XYZxyz(34.7371, 21.9246, 72.1997)
Luminance0.2192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BDF #8BDF5B
analogous
#6D5BDF #AF5BDF #DF5BCD
triadic
#AF5BDF #DFAF5B #5BDFAF
tetradic
#AF5BDF #DF6D5B #8BDF5B #5BCDDF
square
#AF5BDF #DF6D5B #8BDF5B #5BCDDF
split-complementary
#AF5BDF #CDDF5B #5BDF6D
monochromatic
#711FA0 #9629D4 #AF5BDF #C88EE9 #E1C1F3

Accessibility & contrast

On white

3.90
#AF5BDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#AF5BDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BDF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BDF#FFFFFF#000000##000000
##AF5BDF1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7DE3
Deuteranopia (green-blind)
#5083DC
Tritanopia (blue-blind)
#A97395
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5bdf;
/* rgb */ color: rgb(175, 91, 223);
/* oklch */ color: oklch(62.7% 0.201 311.3);
Tailwind
colors: {
  custom: {
    50: '#ca8dea',
    500: '#af5bdf',
    950: '#000000',
  },
}
SCSS
$custom: #af5bdf;
$custom-light: #ca8dea;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bdf",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 223
  },
  "hsl": {
    "h": 278.182,
    "s": 67.347,
    "l": 61.569
  },
  "oklch": {
    "l": 0.62694,
    "c": 0.20132,
    "h": 311.3
  },
  "luminance": 0.21924
}

Semantic roles & 50–950 ramp

primary
#AF5BDF
secondary
#C4E3B2
accent
#CF165A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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