#AF5CE5#AF5CE5

#AF5CE5 is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.2% C 0.206 H 309.7°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#AF5CE5
RGBrgb(175, 92, 229)
HSLhsl(276, 72%, 63%)
HSVhsv(276, 60%, 90%)
CMYKcmyk(23.6%, 59.8%, 0%, 10.2%)
CIE-LABlab(54.48, 56.80, -56.34)
CIE-LCHlch(54.48, 80.00, 315.23°)
OKLaboklab(63.19% 0.1317 -0.1587)
OKLCHoklch(63.19% 0.206 309.7)
XYZxyz(35.6465, 22.4260, 76.5644)
Luminance0.2243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CE5 #92E55C
analogous
#6A5CE5 #AF5CE5 #E55CD7
triadic
#AF5CE5 #E5AF5C #5CE5AF
tetradic
#AF5CE5 #E56A5C #92E55C #5CD7E5
square
#AF5CE5 #E56A5C #92E55C #5CD7E5
split-complementary
#AF5CE5 #D7E55C #5CE56A
monochromatic
#731BAB #9527DD #AF5CE5 #C991ED #E3C6F6

Accessibility & contrast

On white

3.83
#AF5CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#AF5CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CE5
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CE5#FFFFFF#000000##000000
##AF5CE51.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#247FE9
Deuteranopia (green-blind)
#4B84E2
Tritanopia (blue-blind)
#A87698
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5ce5;
/* rgb */ color: rgb(175, 92, 229);
/* oklch */ color: oklch(63.2% 0.206 309.7);
Tailwind
colors: {
  custom: {
    50: '#ca8eee',
    500: '#af5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #af5ce5;
$custom-light: #ca8eee;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ce5",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 276.35,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63191,
    "c": 0.20617,
    "h": 309.7
  },
  "luminance": 0.22425
}

Semantic roles & 50–950 ramp

primary
#AF5CE5
secondary
#C9E7B6
accent
#D5115E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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