#AF5FDA#AF5FDA

#AF5FDA is a light, vivid violet. Relative luminance 0.224; OKLCH L 62.9% C 0.190 H 312.2°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF5FDA
RGBrgb(175, 95, 218)
HSLhsl(279, 62%, 61%)
HSVhsv(279, 56%, 85%)
CMYKcmyk(19.7%, 56.4%, 0%, 14.5%)
CIE-LABlab(54.41, 52.92, -50.24)
CIE-LCHlch(54.41, 72.97, 316.49°)
OKLaboklab(62.94% 0.1278 -0.1409)
OKLCHoklch(62.94% 0.19 312.2)
XYZxyz(34.4241, 22.3612, 68.8188)
Luminance0.2236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FDA #8ADA5F
analogous
#725FDA #AF5FDA #DA5FC8
triadic
#AF5FDA #DAAF5F #5FDAAF
tetradic
#AF5FDA #DA725F #8ADA5F #5FC8DA
square
#AF5FDA #DA725F #8ADA5F #5FC8DA
split-complementary
#AF5FDA #C8DA5F #5FDA72
monochromatic
#71249B #962FCD #AF5FDA #C891E5 #E1C2F1

Accessibility & contrast

On white

3.84
#AF5FDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#AF5FDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FDA
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FDA#FFFFFF#000000##000000
##AF5FDA1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A7EDE
Deuteranopia (green-blind)
#5784D7
Tritanopia (blue-blind)
#AA7594
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5fda;
/* rgb */ color: rgb(175, 95, 218);
/* oklch */ color: oklch(62.9% 0.190 312.2);
Tailwind
colors: {
  custom: {
    50: '#ca90e6',
    500: '#af5fda',
    950: '#000000',
  },
}
SCSS
$custom: #af5fda;
$custom-light: #ca90e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fda",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 218
  },
  "hsl": {
    "h": 279.024,
    "s": 62.437,
    "l": 61.373
  },
  "oklch": {
    "l": 0.6294,
    "c": 0.19016,
    "h": 312.2
  },
  "luminance": 0.2236
}

Semantic roles & 50–950 ramp

primary
#AF5FDA
secondary
#C3E1B3
accent
#CA1B58
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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