#AF5CE1#AF5CE1

#AF5CE1 is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 62.9% C 0.202 H 310.7°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF5CE1
RGBrgb(175, 92, 225)
HSLhsl(277, 69%, 62%)
HSVhsv(277, 59%, 88%)
CMYKcmyk(22.2%, 59.1%, 0%, 11.8%)
CIE-LABlab(54.24, 55.93, -54.46)
CIE-LCHlch(54.24, 78.06, 315.76°)
OKLaboklab(62.95% 0.1317 -0.1532)
OKLCHoklch(62.95% 0.202 310.7)
XYZxyz(35.0944, 22.2052, 73.6569)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CE1 #8EE15C
analogous
#6D5CE1 #AF5CE1 #E15CD0
triadic
#AF5CE1 #E1AF5C #5CE1AF
tetradic
#AF5CE1 #E16D5C #8EE15C #5CD0E1
square
#AF5CE1 #E16D5C #8EE15C #5CD0E1
split-complementary
#AF5CE1 #D0E15C #5CE16D
monochromatic
#721EA4 #9628D7 #AF5CE1 #C890EB #E2C3F4

Accessibility & contrast

On white

3.86
#AF5CE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#AF5CE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CE1
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CE1#FFFFFF#000000##000000
##AF5CE11.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7EE5
Deuteranopia (green-blind)
#4F83DE
Tritanopia (blue-blind)
#A97596
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5ce1;
/* rgb */ color: rgb(175, 92, 225);
/* oklch */ color: oklch(62.9% 0.202 310.7);
Tailwind
colors: {
  custom: {
    50: '#ca8eeb',
    500: '#af5ce1',
    950: '#000000',
  },
}
SCSS
$custom: #af5ce1;
$custom-light: #ca8eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ce1",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 225
  },
  "hsl": {
    "h": 277.444,
    "s": 68.912,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62947,
    "c": 0.20198,
    "h": 310.7
  },
  "luminance": 0.22204
}

Semantic roles & 50–950 ramp

primary
#AF5CE1
secondary
#C6E5B4
accent
#D1155B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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