#AF54EA#AF54EA

#AF54EA is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.5% C 0.222 H 309.3°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF54EA
RGBrgb(175, 84, 234)
HSLhsl(276, 78%, 62%)
HSVhsv(276, 64%, 92%)
CMYKcmyk(25.2%, 64.1%, 0%, 8.2%)
CIE-LABlab(53.38, 61.70, -60.91)
CIE-LCHlch(53.38, 86.70, 315.37°)
OKLaboklab(62.49% 0.1408 -0.172)
OKLCHoklch(62.49% 0.222 309.3)
XYZxyz(35.6979, 21.3958, 80.0752)
Luminance0.2140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54EA #8FEA54
analogous
#6454EA #AF54EA #EA54DA
triadic
#AF54EA #EAAF54 #54EAAF
tetradic
#AF54EA #EA6454 #8FEA54 #54DAEA
square
#AF54EA #EA6454 #8FEA54 #54DAEA
split-complementary
#AF54EA #DAEA54 #54EA64
monochromatic
#7215AE #961DE3 #AF54EA #C98BF1 #E2C1F7

Accessibility & contrast

On white

3.98
#AF54EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#AF54EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54EA
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54EA#FFFFFF#000000##000000
##AF54EA1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEF
Deuteranopia (green-blind)
#3D81E7
Tritanopia (blue-blind)
#A77398
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af54ea;
/* rgb */ color: rgb(175, 84, 234);
/* oklch */ color: oklch(62.5% 0.222 309.3);
Tailwind
colors: {
  custom: {
    50: '#cb8af1',
    500: '#af54ea',
    950: '#000000',
  },
}
SCSS
$custom: #af54ea;
$custom-light: #cb8af1;
$custom-dark: #000000;
JSON
{
  "hex": "#af54ea",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 276.4,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62494,
    "c": 0.22228,
    "h": 309.3
  },
  "luminance": 0.21395
}

Semantic roles & 50–950 ramp

primary
#AF54EA
secondary
#C7E8B2
accent
#DA0B5D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF54EA

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

Preview Lab → · Contrast checker → · Palette generator →

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