#AF54E4#AF54E4

#AF54E4 is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.1% C 0.216 H 310.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF54E4
RGBrgb(175, 84, 228)
HSLhsl(278, 73%, 61%)
HSVhsv(278, 63%, 89%)
CMYKcmyk(23.2%, 63.2%, 0%, 10.6%)
CIE-LABlab(53.01, 60.41, -58.12)
CIE-LCHlch(53.01, 83.83, 316.10°)
OKLaboklab(62.11% 0.1411 -0.1639)
OKLCHoklch(62.11% 0.216 310.7)
XYZxyz(34.8505, 21.0568, 75.6122)
Luminance0.2106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54E4 #89E454
analogous
#6754E4 #AF54E4 #E454D1
triadic
#AF54E4 #E4AF54 #54E4AF
tetradic
#AF54E4 #E46754 #89E454 #54D1E4
square
#AF54E4 #E46754 #89E454 #54D1E4
split-complementary
#AF54E4 #D1E454 #54E467
monochromatic
#711AA4 #9522D9 #AF54E4 #C889EC #E0BEF5

Accessibility & contrast

On white

4.03
#AF54E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#AF54E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54E4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54E4#FFFFFF#000000##000000
##AF54E41.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE8
Deuteranopia (green-blind)
#4380E1
Tritanopia (blue-blind)
#A87095
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af54e4;
/* rgb */ color: rgb(175, 84, 228);
/* oklch */ color: oklch(62.1% 0.216 310.7);
Tailwind
colors: {
  custom: {
    50: '#cb89ed',
    500: '#af54e4',
    950: '#000000',
  },
}
SCSS
$custom: #af54e4;
$custom-light: #cb89ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af54e4",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 277.917,
    "s": 72.727,
    "l": 61.176
  },
  "oklch": {
    "l": 0.6211,
    "c": 0.21623,
    "h": 310.7
  },
  "luminance": 0.21056
}

Semantic roles & 50–950 ramp

primary
#AF54E4
secondary
#C3E5AF
accent
#D51159
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF54E4

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

Preview Lab → · Contrast checker → · Palette generator →

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