#AF54DD#AF54DD

#AF54DD is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.7% C 0.209 H 312.5°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AF54DD
RGBrgb(175, 84, 221)
HSLhsl(280, 67%, 60%)
HSVhsv(280, 62%, 87%)
CMYKcmyk(20.8%, 62%, 0%, 13.3%)
CIE-LABlab(52.59, 58.92, -54.84)
CIE-LCHlch(52.59, 80.49, 317.06°)
OKLaboklab(61.67% 0.1413 -0.1542)
OKLCHoklch(61.67% 0.209 312.5)
XYZxyz(33.8984, 20.6760, 70.5978)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54DD #82DD54
analogous
#6B54DD #AF54DD #DD54C6
triadic
#AF54DD #DDAF54 #54DDAF
tetradic
#AF54DD #DD6B54 #82DD54 #54C6DD
square
#AF54DD #DD6B54 #82DD54 #54C6DD
split-complementary
#AF54DD #C6DD54 #54DD6B
monochromatic
#6F1E98 #9528CB #AF54DD #C787E7 #DFBAF1

Accessibility & contrast

On white

4.09
#AF54DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#AF54DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54DD
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54DD#FFFFFF#000000##000000
##AF54DD1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A79E1
Deuteranopia (green-blind)
#4A7FDA
Tritanopia (blue-blind)
#AA6E91
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af54dd;
/* rgb */ color: rgb(175, 84, 221);
/* oklch */ color: oklch(61.7% 0.209 312.5);
Tailwind
colors: {
  custom: {
    50: '#ca89e8',
    500: '#af54dd',
    950: '#000000',
  },
}
SCSS
$custom: #af54dd;
$custom-light: #ca89e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af54dd",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 221
  },
  "hsl": {
    "h": 279.854,
    "s": 66.829,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61673,
    "c": 0.20918,
    "h": 312.5
  },
  "luminance": 0.20675
}

Semantic roles & 50–950 ramp

primary
#AF54DD
secondary
#BEE1AC
accent
#EA3E78
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF54DD

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

Preview Lab → · Contrast checker → · Palette generator →

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