#AF54ED#AF54ED

#AF54ED is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.7% C 0.225 H 308.6°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#AF54ED
RGBrgb(175, 84, 237)
HSLhsl(276, 81%, 63%)
HSVhsv(276, 65%, 93%)
CMYKcmyk(26.2%, 64.6%, 0%, 7.1%)
CIE-LABlab(53.57, 62.35, -62.29)
CIE-LCHlch(53.57, 88.13, 315.03°)
OKLaboklab(62.69% 0.1406 -0.1761)
OKLCHoklch(62.69% 0.225 308.6)
XYZxyz(36.1325, 21.5696, 82.3642)
Luminance0.2157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54ED #92ED54
analogous
#6254ED #AF54ED #ED54DF
triadic
#AF54ED #EDAF54 #54EDAF
tetradic
#AF54ED #ED6254 #92ED54 #54DFED
square
#AF54ED #ED6254 #92ED54 #54DFED
split-complementary
#AF54ED #DFED54 #54ED62
monochromatic
#7313B4 #951DE7 #AF54ED #C98BF3 #E3C3F9

Accessibility & contrast

On white

3.95
#AF54ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#AF54ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54ED
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54ED#FFFFFF#000000##000000
##AF54ED1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF2
Deuteranopia (green-blind)
#3981EA
Tritanopia (blue-blind)
#A67499
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af54ed;
/* rgb */ color: rgb(175, 84, 237);
/* oklch */ color: oklch(62.7% 0.225 308.6);
Tailwind
colors: {
  custom: {
    50: '#cb8af4',
    500: '#af54ed',
    950: '#000000',
  },
}
SCSS
$custom: #af54ed;
$custom-light: #cb8af4;
$custom-dark: #000000;
JSON
{
  "hex": "#af54ed",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 237
  },
  "hsl": {
    "h": 275.686,
    "s": 80.952,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62688,
    "c": 0.22531,
    "h": 308.6
  },
  "luminance": 0.21569
}

Semantic roles & 50–950 ramp

primary
#AF54ED
secondary
#C9EAB3
accent
#DD085F
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF54ED

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

Preview Lab → · Contrast checker → · Palette generator →

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