#AF5CE9#AF5CE9

#AF5CE9 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.4% C 0.210 H 308.7°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AF5CE9
RGBrgb(175, 92, 233)
HSLhsl(275, 76%, 64%)
HSVhsv(275, 61%, 91%)
CMYKcmyk(24.9%, 60.5%, 0%, 8.6%)
CIE-LABlab(54.71, 57.68, -58.21)
CIE-LCHlch(54.71, 81.94, 314.74°)
OKLaboklab(63.44% 0.1316 -0.1641)
OKLCHoklch(63.44% 0.21 308.7)
XYZxyz(36.2114, 22.6520, 79.5397)
Luminance0.2265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CE9 #96E95C
analogous
#685CE9 #AF5CE9 #E95CDC
triadic
#AF5CE9 #E9AF5C #5CE9AF
tetradic
#AF5CE9 #E9685C #96E95C #5CDCE9
square
#AF5CE9 #E9685C #96E95C #5CDCE9
split-complementary
#AF5CE9 #DCE95C #5CE968
monochromatic
#7318B3 #9526E2 #AF5CE9 #C992F0 #E4C8F8

Accessibility & contrast

On white

3.80
#AF5CE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#AF5CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CE9
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CE9#FFFFFF#000000##000000
##AF5CE91.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B80ED
Deuteranopia (green-blind)
#4784E6
Tritanopia (blue-blind)
#A7789A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5ce9;
/* rgb */ color: rgb(175, 92, 233);
/* oklch */ color: oklch(63.4% 0.210 308.7);
Tailwind
colors: {
  custom: {
    50: '#cb8ef1',
    500: '#af5ce9',
    950: '#000000',
  },
}
SCSS
$custom: #af5ce9;
$custom-light: #cb8ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ce9",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 233
  },
  "hsl": {
    "h": 275.319,
    "s": 76.216,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63438,
    "c": 0.21038,
    "h": 308.7
  },
  "luminance": 0.22651
}

Semantic roles & 50–950 ramp

primary
#AF5CE9
secondary
#CCE9B8
accent
#D80D61
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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