#AF54E6#AF54E6

#AF54E6 is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.2% C 0.218 H 310.2°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AF54E6
RGBrgb(175, 84, 230)
HSLhsl(277, 74%, 62%)
HSVhsv(277, 63%, 90%)
CMYKcmyk(23.9%, 63.5%, 0%, 9.8%)
CIE-LABlab(53.13, 60.84, -59.05)
CIE-LCHlch(53.13, 84.78, 315.85°)
OKLaboklab(62.24% 0.141 -0.1666)
OKLCHoklch(62.24% 0.218 310.2)
XYZxyz(35.1297, 21.1685, 77.0829)
Luminance0.2117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54E6 #8BE654
analogous
#6654E6 #AF54E6 #E654D4
triadic
#AF54E6 #E6AF54 #54E6AF
tetradic
#AF54E6 #E66654 #8BE654 #54D4E6
square
#AF54E6 #E66654 #8BE654 #54D4E6
split-complementary
#AF54E6 #D4E654 #54E666
monochromatic
#7118A7 #9620DD #AF54E6 #C889EE #E1BFF6

Accessibility & contrast

On white

4.01
#AF54E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#AF54E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54E6
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54E6#FFFFFF#000000##000000
##AF54E61.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEA
Deuteranopia (green-blind)
#4180E3
Tritanopia (blue-blind)
#A87196
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af54e6;
/* rgb */ color: rgb(175, 84, 230);
/* oklch */ color: oklch(62.2% 0.218 310.2);
Tailwind
colors: {
  custom: {
    50: '#cb89ef',
    500: '#af54e6',
    950: '#000000',
  },
}
SCSS
$custom: #af54e6;
$custom-light: #cb89ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af54e6",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 230
  },
  "hsl": {
    "h": 277.397,
    "s": 74.49,
    "l": 61.569
  },
  "oklch": {
    "l": 0.62237,
    "c": 0.21825,
    "h": 310.2
  },
  "luminance": 0.21168
}

Semantic roles & 50–950 ramp

primary
#AF54E6
secondary
#C4E6B0
accent
#D70F5A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF54E6

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

Preview Lab → · Contrast checker → · Palette generator →

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