#AF5CE0#AF5CE0

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

Color values

HEX#AF5CE0
RGBrgb(175, 92, 224)
HSLhsl(278, 68%, 62%)
HSVhsv(278, 59%, 88%)
CMYKcmyk(21.9%, 58.9%, 0%, 12.2%)
CIE-LABlab(54.19, 55.71, -53.99)
CIE-LCHlch(54.19, 77.58, 315.90°)
OKLaboklab(62.89% 0.1317 -0.1518)
OKLCHoklch(62.89% 0.201 310.9)
XYZxyz(34.9584, 22.1508, 72.9405)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CE0 #8DE05C
analogous
#6D5CE0 #AF5CE0 #E05CCF
triadic
#AF5CE0 #E0AF5C #5CE0AF
tetradic
#AF5CE0 #E06D5C #8DE05C #5CCFE0
square
#AF5CE0 #E06D5C #8DE05C #5CCFE0
split-complementary
#AF5CE0 #CFE05C #5CE06D
monochromatic
#721FA3 #9629D6 #AF5CE0 #C88FEA #E1C3F4

Accessibility & contrast

On white

3.87
#AF5CE0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#AF5CE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CE0
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CE0#FFFFFF#000000##000000
##AF5CE01.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C7EE4
Deuteranopia (green-blind)
#5083DD
Tritanopia (blue-blind)
#A97495
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5ce0;
/* rgb */ color: rgb(175, 92, 224);
/* oklch */ color: oklch(62.9% 0.201 310.9);
Tailwind
colors: {
  custom: {
    50: '#ca8eea',
    500: '#af5ce0',
    950: '#000000',
  },
}
SCSS
$custom: #af5ce0;
$custom-light: #ca8eea;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ce0",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 224
  },
  "hsl": {
    "h": 277.727,
    "s": 68.041,
    "l": 61.961
  },
  "oklch": {
    "l": 0.62887,
    "c": 0.20092,
    "h": 310.9
  },
  "luminance": 0.2215
}

Semantic roles & 50–950 ramp

primary
#AF5CE0
secondary
#C6E4B4
accent
#D0165B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CE0

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

Preview Lab → · Contrast checker → · Palette generator →

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