#AF5EDD#AF5EDD

#AF5EDD is a light, vivid violet. Relative luminance 0.223; OKLCH L 63.0% C 0.195 H 311.5°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF5EDD
RGBrgb(175, 94, 221)
HSLhsl(278, 65%, 62%)
HSVhsv(278, 57%, 87%)
CMYKcmyk(20.8%, 57.5%, 0%, 13.3%)
CIE-LABlab(54.39, 54.07, -51.97)
CIE-LCHlch(54.39, 75.00, 316.13°)
OKLaboklab(62.98% 0.1291 -0.1459)
OKLCHoklch(62.98% 0.195 311.5)
XYZxyz(34.7307, 22.3406, 70.8752)
Luminance0.2234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EDD #8CDD5E
analogous
#705EDD #AF5EDD #DD5ECB
triadic
#AF5EDD #DDAF5E #5EDDAF
tetradic
#AF5EDD #DD705E #8CDD5E #5ECBDD
square
#AF5EDD #DD705E #8CDD5E #5ECBDD
split-complementary
#AF5EDD #CBDD5E #5EDD70
monochromatic
#72229F #962CD2 #AF5EDD #C891E8 #E1C3F2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5EDD#FFFFFF#000000##000000
##AF5EDD1.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)
#357EE1
Deuteranopia (green-blind)
#5484DA
Tritanopia (blue-blind)
#AA7595
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5edd;
/* rgb */ color: rgb(175, 94, 221);
/* oklch */ color: oklch(63.0% 0.195 311.5);
Tailwind
colors: {
  custom: {
    50: '#ca8fe8',
    500: '#af5edd',
    950: '#000000',
  },
}
SCSS
$custom: #af5edd;
$custom-light: #ca8fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5edd",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 221
  },
  "hsl": {
    "h": 278.268,
    "s": 65.128,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62978,
    "c": 0.19483,
    "h": 311.5
  },
  "luminance": 0.2234
}

Semantic roles & 50–950 ramp

primary
#AF5EDD
secondary
#C5E3B4
accent
#CD195A
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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