#AF54DF#AF54DF

#AF54DF is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.8% C 0.211 H 312.0°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AF54DF
RGBrgb(175, 84, 223)
HSLhsl(279, 68%, 60%)
HSVhsv(279, 62%, 87%)
CMYKcmyk(21.5%, 62.3%, 0%, 12.5%)
CIE-LABlab(52.71, 59.34, -55.78)
CIE-LCHlch(52.71, 81.45, 316.77°)
OKLaboklab(61.8% 0.1412 -0.157)
OKLCHoklch(61.8% 0.211 312)
XYZxyz(34.1664, 20.7832, 72.0095)
Luminance0.2078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54DF #84DF54
analogous
#6A54DF #AF54DF #DF54C9
triadic
#AF54DF #DFAF54 #54DFAF
tetradic
#AF54DF #DF6A54 #84DF54 #54C9DF
square
#AF54DF #DF6A54 #84DF54 #54C9DF
split-complementary
#AF54DF #C9DF54 #54DF6A
monochromatic
#701D9C #9527CF #AF54DF #C788E9 #DFBBF2

Accessibility & contrast

On white

4.07
#AF54DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#AF54DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54DF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54DF#FFFFFF#000000##000000
##AF54DF1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1579E3
Deuteranopia (green-blind)
#4880DC
Tritanopia (blue-blind)
#AA6F92
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af54df;
/* rgb */ color: rgb(175, 84, 223);
/* oklch */ color: oklch(61.8% 0.211 312.0);
Tailwind
colors: {
  custom: {
    50: '#ca89ea',
    500: '#af54df',
    950: '#000000',
  },
}
SCSS
$custom: #af54df;
$custom-light: #ca89ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af54df",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 223
  },
  "hsl": {
    "h": 279.281,
    "s": 68.473,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61797,
    "c": 0.21119,
    "h": 312
  },
  "luminance": 0.20782
}

Semantic roles & 50–950 ramp

primary
#AF54DF
secondary
#BFE2AD
accent
#D01556
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF54DF

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

Preview Lab → · Contrast checker → · Palette generator →

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