#AF8DE4#AF8DE4

#AF8DE4 is a light, vivid violet. Relative luminance 0.338; OKLCH L 70.8% C 0.128 H 301.2°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#AF8DE4
RGBrgb(175, 141, 228)
HSLhsl(263, 62%, 72%)
HSVhsv(263, 38%, 89%)
CMYKcmyk(23.2%, 38.2%, 0%, 10.6%)
CIE-LABlab(64.78, 30.25, -39.48)
CIE-LCHlch(64.78, 49.73, 307.46°)
OKLaboklab(70.84% 0.0665 -0.1098)
OKLCHoklch(70.84% 0.128 301.2)
XYZxyz(41.2046, 33.7651, 77.7303)
Luminance0.3377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8DE4 #C2E48D
analogous
#8D97E4 #AF8DE4 #DA8DE4
triadic
#AF8DE4 #E4AF8D #8DE4AF
tetradic
#AF8DE4 #E48D97 #C2E48D #8DE4DA
square
#AF8DE4 #E48D97 #C2E48D #8DE4DA
split-complementary
#AF8DE4 #E4DA8D #97E48D
monochromatic
#6B2FC7 #8C5CD8 #AF8DE4 #D2BEF0 #EEE6F9

Accessibility & contrast

On white

2.71
#AF8DE4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#AF8DE4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8DE4
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8DE4#FFFFFF#000000##000000
##AF8DE41.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#789DE7
Deuteranopia (green-blind)
#7E9DE2
Tritanopia (blue-blind)
#A69BAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af8de4;
/* rgb */ color: rgb(175, 141, 228);
/* oklch */ color: oklch(70.8% 0.128 301.2);
Tailwind
colors: {
  custom: {
    50: '#c8aeed',
    500: '#af8de4',
    950: '#000000',
  },
}
SCSS
$custom: #af8de4;
$custom-light: #c8aeed;
$custom-dark: #000000;
JSON
{
  "hex": "#af8de4",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 228
  },
  "hsl": {
    "h": 263.448,
    "s": 61.702,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70839,
    "c": 0.12832,
    "h": 301.2
  },
  "luminance": 0.33765
}

Semantic roles & 50–950 ramp

primary
#AF8DE4
secondary
#E8F1DA
accent
#C91C86
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF8DE4

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

Preview Lab → · Contrast checker → · Palette generator →

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