#AF54EC#AF54EC

#AF54EC is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.6% C 0.224 H 308.8°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AF54EC
RGBrgb(175, 84, 236)
HSLhsl(276, 80%, 63%)
HSVhsv(276, 64%, 93%)
CMYKcmyk(25.8%, 64.4%, 0%, 7.5%)
CIE-LABlab(53.50, 62.13, -61.83)
CIE-LCHlch(53.50, 87.65, 315.14°)
OKLaboklab(62.62% 0.1406 -0.1747)
OKLCHoklch(62.62% 0.224 308.8)
XYZxyz(35.9868, 21.5113, 81.5969)
Luminance0.2151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54EC #91EC54
analogous
#6354EC #AF54EC #EC54DD
triadic
#AF54EC #ECAF54 #54ECAF
tetradic
#AF54EC #EC6354 #91EC54 #54DDEC
square
#AF54EC #EC6354 #91EC54 #54DDEC
split-complementary
#AF54EC #DDEC54 #54EC63
monochromatic
#7214B2 #951DE6 #AF54EC #C98BF2 #E3C2F8

Accessibility & contrast

On white

3.96
#AF54EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#AF54EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54EC
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54EC#FFFFFF#000000##000000
##AF54EC1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#3A81E9
Tritanopia (blue-blind)
#A67399
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af54ec;
/* rgb */ color: rgb(175, 84, 236);
/* oklch */ color: oklch(62.6% 0.224 308.8);
Tailwind
colors: {
  custom: {
    50: '#cb8af3',
    500: '#af54ec',
    950: '#000000',
  },
}
SCSS
$custom: #af54ec;
$custom-light: #cb8af3;
$custom-dark: #000000;
JSON
{
  "hex": "#af54ec",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 275.921,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62623,
    "c": 0.22431,
    "h": 308.8
  },
  "luminance": 0.21511
}

Semantic roles & 50–950 ramp

primary
#AF54EC
secondary
#C8E9B2
accent
#DC095E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF54EC

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

Preview Lab → · Contrast checker → · Palette generator →

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