#AF54DE#AF54DE

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

Color values

HEX#AF54DE
RGBrgb(175, 84, 222)
HSLhsl(280, 68%, 60%)
HSVhsv(280, 62%, 87%)
CMYKcmyk(21.2%, 62.2%, 0%, 12.9%)
CIE-LABlab(52.65, 59.13, -55.31)
CIE-LCHlch(52.65, 80.97, 316.91°)
OKLaboklab(61.73% 0.1413 -0.1556)
OKLCHoklch(61.73% 0.21 312.2)
XYZxyz(34.0320, 20.7294, 71.3015)
Luminance0.2073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54DE #83DE54
analogous
#6A54DE #AF54DE #DE54C8
triadic
#AF54DE #DEAF54 #54DEAF
tetradic
#AF54DE #DE6A54 #83DE54 #54C8DE
square
#AF54DE #DE6A54 #83DE54 #54C8DE
split-complementary
#AF54DE #C8DE54 #54DE6A
monochromatic
#701E9A #9528CD #AF54DE #C787E8 #DFBBF2

Accessibility & contrast

On white

4.08
#AF54DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#AF54DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54DE
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54DE#FFFFFF#000000##000000
##AF54DE1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1879E2
Deuteranopia (green-blind)
#4980DB
Tritanopia (blue-blind)
#AA6E92
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af54de;
/* rgb */ color: rgb(175, 84, 222);
/* oklch */ color: oklch(61.7% 0.210 312.2);
Tailwind
colors: {
  custom: {
    50: '#ca89e9',
    500: '#af54de',
    950: '#000000',
  },
}
SCSS
$custom: #af54de;
$custom-light: #ca89e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af54de",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 222
  },
  "hsl": {
    "h": 279.565,
    "s": 67.647,
    "l": 60
  },
  "oklch": {
    "l": 0.61735,
    "c": 0.21018,
    "h": 312.2
  },
  "luminance": 0.20729
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF54DE

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

Preview Lab → · Contrast checker → · Palette generator →

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