#AF50E5#AF50E5

#AF50E5 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.7% C 0.223 H 310.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AF50E5
RGBrgb(175, 80, 229)
HSLhsl(278, 74%, 61%)
HSVhsv(278, 65%, 90%)
CMYKcmyk(23.6%, 65.1%, 0%, 10.2%)
CIE-LABlab(52.41, 62.45, -59.66)
CIE-LCHlch(52.41, 86.37, 316.31°)
OKLaboklab(61.7% 0.1455 -0.1683)
OKLCHoklch(61.7% 0.223 310.8)
XYZxyz(34.6880, 20.5092, 76.2449)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50E5 #86E550
analogous
#6450E5 #AF50E5 #E550D0
triadic
#AF50E5 #E5AF50 #50E5AF
tetradic
#AF50E5 #E56450 #86E550 #50D0E5
square
#AF50E5 #E56450 #86E550 #50D0E5
split-complementary
#AF50E5 #D0E550 #50E564
monochromatic
#7018A2 #9520D8 #AF50E5 #C785ED #E0BBF5

Accessibility & contrast

On white

4.12
#AF50E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#AF50E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50E5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50E5#FFFFFF#000000##000000
##AF50E51.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#3E7FE2
Tritanopia (blue-blind)
#A86E94
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af50e5;
/* rgb */ color: rgb(175, 80, 229);
/* oklch */ color: oklch(61.7% 0.223 310.8);
Tailwind
colors: {
  custom: {
    50: '#cb87ee',
    500: '#af50e5',
    950: '#000000',
  },
}
SCSS
$custom: #af50e5;
$custom-light: #cb87ee;
$custom-dark: #000000;
JSON
{
  "hex": "#af50e5",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 229
  },
  "hsl": {
    "h": 278.255,
    "s": 74.129,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61695,
    "c": 0.22252,
    "h": 310.8
  },
  "luminance": 0.20508
}

Semantic roles & 50–950 ramp

primary
#AF50E5
secondary
#C1E5AC
accent
#D60F57
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF50E5

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

Preview Lab → · Contrast checker → · Palette generator →

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