#AF54F1#AF54F1

#AF54F1 is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 63.0% C 0.229 H 307.7°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AF54F1
RGBrgb(175, 84, 241)
HSLhsl(275, 85%, 64%)
HSVhsv(275, 65%, 95%)
CMYKcmyk(27.4%, 65.1%, 0%, 5.5%)
CIE-LABlab(53.82, 63.22, -64.12)
CIE-LCHlch(53.82, 90.04, 314.60°)
OKLaboklab(62.95% 0.1403 -0.1815)
OKLCHoklch(62.95% 0.229 307.7)
XYZxyz(36.7234, 21.8060, 85.4764)
Luminance0.2180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54F1 #96F154
analogous
#6054F1 #AF54F1 #F154E4
triadic
#AF54F1 #F1AF54 #54F1AF
tetradic
#AF54F1 #F16054 #96F154 #54E4F1
square
#AF54F1 #F16054 #96F154 #54E4F1
split-complementary
#AF54F1 #E4F154 #54F160
monochromatic
#730FBB #951BEC #AF54F1 #C98DF6 #E4C5FA

Accessibility & contrast

On white

3.92
#AF54F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#AF54F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54F1
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54F1#FFFFFF#000000##000000
##AF54F11.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF6
Deuteranopia (green-blind)
#3382EE
Tritanopia (blue-blind)
#A5759C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af54f1;
/* rgb */ color: rgb(175, 84, 241);
/* oklch */ color: oklch(63.0% 0.229 307.7);
Tailwind
colors: {
  custom: {
    50: '#cb8af6',
    500: '#af54f1',
    950: '#000000',
  },
}
SCSS
$custom: #af54f1;
$custom-light: #cb8af6;
$custom-dark: #000000;
JSON
{
  "hex": "#af54f1",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 241
  },
  "hsl": {
    "h": 274.777,
    "s": 84.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62951,
    "c": 0.22935,
    "h": 307.7
  },
  "luminance": 0.21805
}

Semantic roles & 50–950 ramp

primary
#AF54F1
secondary
#CCECB5
accent
#E10461
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF54F1

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

Preview Lab → · Contrast checker → · Palette generator →

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