#AF54EF#AF54EF

#AF54EF is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.8% C 0.227 H 308.1°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF54EF
RGBrgb(175, 84, 239)
HSLhsl(275, 83%, 63%)
HSVhsv(275, 65%, 94%)
CMYKcmyk(26.8%, 64.9%, 0%, 6.3%)
CIE-LABlab(53.69, 62.78, -63.20)
CIE-LCHlch(53.69, 89.09, 314.81°)
OKLaboklab(62.82% 0.1404 -0.1788)
OKLCHoklch(62.82% 0.227 308.1)
XYZxyz(36.4263, 21.6871, 83.9117)
Luminance0.2169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54EF #94EF54
analogous
#6154EF #AF54EF #EF54E1
triadic
#AF54EF #EFAF54 #54EFAF
tetradic
#AF54EF #EF6154 #94EF54 #54E1EF
square
#AF54EF #EF6154 #94EF54 #54E1EF
split-complementary
#AF54EF #E1EF54 #54EF61
monochromatic
#7311B7 #951CEA #AF54EF #C98CF4 #E3C4F9

Accessibility & contrast

On white

3.93
#AF54EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#AF54EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54EF
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54EF#FFFFFF#000000##000000
##AF54EF1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF4
Deuteranopia (green-blind)
#3681EC
Tritanopia (blue-blind)
#A5759B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af54ef;
/* rgb */ color: rgb(175, 84, 239);
/* oklch */ color: oklch(62.8% 0.227 308.1);
Tailwind
colors: {
  custom: {
    50: '#cb8af5',
    500: '#af54ef',
    950: '#000000',
  },
}
SCSS
$custom: #af54ef;
$custom-light: #cb8af5;
$custom-dark: #000000;
JSON
{
  "hex": "#af54ef",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 275.226,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62819,
    "c": 0.22733,
    "h": 308.1
  },
  "luminance": 0.21687
}

Semantic roles & 50–950 ramp

primary
#AF54EF
secondary
#CBEBB4
accent
#DF0660
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF54EF

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

Preview Lab → · Contrast checker → · Palette generator →

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