#AF54EB#AF54EB

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

Color values

HEX#AF54EB
RGBrgb(175, 84, 235)
HSLhsl(276, 79%, 63%)
HSVhsv(276, 64%, 92%)
CMYKcmyk(25.5%, 64.3%, 0%, 7.8%)
CIE-LABlab(53.44, 61.91, -61.37)
CIE-LCHlch(53.44, 87.17, 315.25°)
OKLaboklab(62.56% 0.1407 -0.1734)
OKLCHoklch(62.56% 0.223 309.1)
XYZxyz(35.8419, 21.4534, 80.8339)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54EB #90EB54
analogous
#6354EB #AF54EB #EB54DC
triadic
#AF54EB #EBAF54 #54EBAF
tetradic
#AF54EB #EB6354 #90EB54 #54DCEB
square
#AF54EB #EB6354 #90EB54 #54DCEB
split-complementary
#AF54EB #DCEB54 #54EB63
monochromatic
#7215B0 #951DE5 #AF54EB #C98BF1 #E2C2F8

Accessibility & contrast

On white

3.97
#AF54EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#AF54EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54EB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54EB#FFFFFF#000000##000000
##AF54EB1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#3B81E8
Tritanopia (blue-blind)
#A67398
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af54eb;
/* rgb */ color: rgb(175, 84, 235);
/* oklch */ color: oklch(62.6% 0.223 309.1);
Tailwind
colors: {
  custom: {
    50: '#cb8af2',
    500: '#af54eb',
    950: '#000000',
  },
}
SCSS
$custom: #af54eb;
$custom-light: #cb8af2;
$custom-dark: #000000;
JSON
{
  "hex": "#af54eb",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 276.159,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62558,
    "c": 0.22329,
    "h": 309.1
  },
  "luminance": 0.21453
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF54EB

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

Preview Lab → · Contrast checker → · Palette generator →

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