#AF54F0#AF54F0

#AF54F0 is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.9% C 0.228 H 307.9°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AF54F0
RGBrgb(175, 84, 240)
HSLhsl(275, 84%, 64%)
HSVhsv(275, 65%, 94%)
CMYKcmyk(27.1%, 65%, 0%, 5.9%)
CIE-LABlab(53.76, 63.00, -63.66)
CIE-LCHlch(53.76, 89.57, 314.70°)
OKLaboklab(62.89% 0.1404 -0.1801)
OKLCHoklch(62.89% 0.228 307.9)
XYZxyz(36.5745, 21.7464, 84.6919)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54F0 #95F054
analogous
#6154F0 #AF54F0 #F054E3
triadic
#AF54F0 #F0AF54 #54F0AF
tetradic
#AF54F0 #F06154 #95F054 #54E3F0
square
#AF54F0 #F06154 #95F054 #54E3F0
split-complementary
#AF54F0 #E3F054 #54F061
monochromatic
#7310B9 #951CEB #AF54F0 #C98CF5 #E4C5FA

Accessibility & contrast

On white

3.93
#AF54F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#AF54F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54F0
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54F0#FFFFFF#000000##000000
##AF54F01.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF5
Deuteranopia (green-blind)
#3581ED
Tritanopia (blue-blind)
#A5759B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af54f0;
/* rgb */ color: rgb(175, 84, 240);
/* oklch */ color: oklch(62.9% 0.228 307.9);
Tailwind
colors: {
  custom: {
    50: '#cb8af6',
    500: '#af54f0',
    950: '#000000',
  },
}
SCSS
$custom: #af54f0;
$custom-light: #cb8af6;
$custom-dark: #000000;
JSON
{
  "hex": "#af54f0",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 240
  },
  "hsl": {
    "h": 275,
    "s": 83.871,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62885,
    "c": 0.22834,
    "h": 307.9
  },
  "luminance": 0.21746
}

Semantic roles & 50–950 ramp

primary
#AF54F0
secondary
#CBECB4
accent
#E00560
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF54F0

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

Preview Lab → · Contrast checker → · Palette generator →

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