#AF50E9#AF50E9

#AF50E9 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 62.0% C 0.226 H 309.9°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF50E9
RGBrgb(175, 80, 233)
HSLhsl(277, 78%, 61%)
HSVhsv(277, 66%, 91%)
CMYKcmyk(24.9%, 65.7%, 0%, 8.6%)
CIE-LABlab(52.66, 63.30, -61.51)
CIE-LCHlch(52.66, 88.26, 315.82°)
OKLaboklab(61.95% 0.1452 -0.1738)
OKLCHoklch(61.95% 0.226 309.9)
XYZxyz(35.2530, 20.7352, 79.2202)
Luminance0.2073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50E9 #8AE950
analogous
#6350E9 #AF50E9 #E950D7
triadic
#AF50E9 #E9AF50 #50E9AF
tetradic
#AF50E9 #E96350 #8AE950 #50D7E9
square
#AF50E9 #E96350 #8AE950 #50D7E9
split-complementary
#AF50E9 #D7E950 #50E963
monochromatic
#7115A9 #961CE0 #AF50E9 #C886F0 #E1BDF7

Accessibility & contrast

On white

4.08
#AF50E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#AF50E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50E9
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50E9#FFFFFF#000000##000000
##AF50E91.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEE
Deuteranopia (green-blind)
#397FE6
Tritanopia (blue-blind)
#A77096
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af50e9;
/* rgb */ color: rgb(175, 80, 233);
/* oklch */ color: oklch(62.0% 0.226 309.9);
Tailwind
colors: {
  custom: {
    50: '#cb87f1',
    500: '#af50e9',
    950: '#000000',
  },
}
SCSS
$custom: #af50e9;
$custom-light: #cb87f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af50e9",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 233
  },
  "hsl": {
    "h": 277.255,
    "s": 77.665,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61954,
    "c": 0.22647,
    "h": 309.9
  },
  "luminance": 0.20734
}

Semantic roles & 50–950 ramp

primary
#AF50E9
secondary
#C3E7AE
accent
#DA0C5A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF50E9

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

Preview Lab → · Contrast checker → · Palette generator →

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