#AF50E4#AF50E4

#AF50E4 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.6% C 0.222 H 311.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AF50E4
RGBrgb(175, 80, 228)
HSLhsl(279, 73%, 60%)
HSVhsv(279, 65%, 89%)
CMYKcmyk(23.2%, 64.9%, 0%, 10.6%)
CIE-LABlab(52.35, 62.24, -59.19)
CIE-LCHlch(52.35, 85.89, 316.44°)
OKLaboklab(61.63% 0.1456 -0.167)
OKLCHoklch(61.63% 0.222 311.1)
XYZxyz(34.5488, 20.4535, 75.5117)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50E4 #85E450
analogous
#6550E4 #AF50E4 #E450CF
triadic
#AF50E4 #E4AF50 #50E4AF
tetradic
#AF50E4 #E46550 #85E450 #50CFE4
square
#AF50E4 #E46550 #85E450 #50CFE4
split-complementary
#AF50E4 #CFE450 #50E465
monochromatic
#7019A1 #9521D6 #AF50E4 #C785EC #DFBAF4

Accessibility & contrast

On white

4.13
#AF50E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AF50E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50E4
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50E4#FFFFFF#000000##000000
##AF50E41.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#3F7FE1
Tritanopia (blue-blind)
#A86E93
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af50e4;
/* rgb */ color: rgb(175, 80, 228);
/* oklch */ color: oklch(61.6% 0.222 311.1);
Tailwind
colors: {
  custom: {
    50: '#cb87ed',
    500: '#af50e4',
    950: '#000000',
  },
}
SCSS
$custom: #af50e4;
$custom-light: #cb87ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af50e4",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 228
  },
  "hsl": {
    "h": 278.514,
    "s": 73.267,
    "l": 60.392
  },
  "oklch": {
    "l": 0.6163,
    "c": 0.22153,
    "h": 311.1
  },
  "luminance": 0.20453
}

Semantic roles & 50–950 ramp

primary
#AF50E4
secondary
#C0E4AC
accent
#D51057
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF50E4

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

Preview Lab → · Contrast checker → · Palette generator →

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