#AF50E1#AF50E1

#AF50E1 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.219 H 311.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF50E1
RGBrgb(175, 80, 225)
HSLhsl(279, 71%, 60%)
HSVhsv(279, 64%, 88%)
CMYKcmyk(22.2%, 64.4%, 0%, 11.8%)
CIE-LABlab(52.16, 61.61, -57.79)
CIE-LCHlch(52.16, 84.47, 316.83°)
OKLaboklab(61.44% 0.1458 -0.1629)
OKLCHoklch(61.44% 0.219 311.8)
XYZxyz(34.1360, 20.2884, 73.3374)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50E1 #82E150
analogous
#6650E1 #AF50E1 #E150CB
triadic
#AF50E1 #E1AF50 #50E1AF
tetradic
#AF50E1 #E16650 #82E150 #50CBE1
square
#AF50E1 #E16650 #82E150 #50CBE1
split-complementary
#AF50E1 #CBE150 #50E166
monochromatic
#6F1B9C #9524D0 #AF50E1 #C784EA #DFB8F3

Accessibility & contrast

On white

4.15
#AF50E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AF50E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50E1
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50E1#FFFFFF#000000##000000
##AF50E11.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E5
Deuteranopia (green-blind)
#427EDE
Tritanopia (blue-blind)
#A96D92
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af50e1;
/* rgb */ color: rgb(175, 80, 225);
/* oklch */ color: oklch(61.4% 0.219 311.8);
Tailwind
colors: {
  custom: {
    50: '#cb87eb',
    500: '#af50e1',
    950: '#000000',
  },
}
SCSS
$custom: #af50e1;
$custom-light: #cb87eb;
$custom-dark: #000000;
JSON
{
  "hex": "#af50e1",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 225
  },
  "hsl": {
    "h": 279.31,
    "s": 70.732,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61438,
    "c": 0.21857,
    "h": 311.8
  },
  "luminance": 0.20288
}

Semantic roles & 50–950 ramp

primary
#AF50E1
secondary
#BEE2AA
accent
#ED3A78
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF50E1

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

Preview Lab → · Contrast checker → · Palette generator →

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