#AF5BDA#AF5BDA

#AF5BDA is a light, vivid violet. Relative luminance 0.217; OKLCH L 62.4% C 0.196 H 312.6°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AF5BDA
RGBrgb(175, 91, 218)
HSLhsl(280, 63%, 61%)
HSVhsv(280, 58%, 85%)
CMYKcmyk(19.7%, 58.3%, 0%, 14.5%)
CIE-LABlab(53.66, 54.92, -51.43)
CIE-LCHlch(53.66, 75.24, 316.88°)
OKLaboklab(62.4% 0.1328 -0.1443)
OKLCHoklch(62.4% 0.196 312.6)
XYZxyz(34.0730, 21.6590, 68.7018)
Luminance0.2166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BDA #86DA5B
analogous
#6F5BDA #AF5BDA #DA5BC5
triadic
#AF5BDA #DAAF5B #5BDAAF
tetradic
#AF5BDA #DA6F5B #86DA5B #5BC5DA
square
#AF5BDA #DA6F5B #86DA5B #5BC5DA
split-complementary
#AF5BDA #C5DA5B #5BDA6F
monochromatic
#702298 #952ECA #AF5BDA #C78DE5 #E0BFF1

Accessibility & contrast

On white

3.94
#AF5BDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#AF5BDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BDA
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BDA#FFFFFF#000000##000000
##AF5BDA1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#327CDE
Deuteranopia (green-blind)
#5482D7
Tritanopia (blue-blind)
#AB7292
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5bda;
/* rgb */ color: rgb(175, 91, 218);
/* oklch */ color: oklch(62.4% 0.196 312.6);
Tailwind
colors: {
  custom: {
    50: '#ca8de6',
    500: '#af5bda',
    950: '#000000',
  },
}
SCSS
$custom: #af5bda;
$custom-light: #ca8de6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bda",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 218
  },
  "hsl": {
    "h": 279.685,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.62395,
    "c": 0.19611,
    "h": 312.6
  },
  "luminance": 0.21658
}

Semantic roles & 50–950 ramp

primary
#AF5BDA
secondary
#C1E1B0
accent
#CB1B56
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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