#AF50E8#AF50E8

#AF50E8 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.9% C 0.225 H 310.1°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF50E8
RGBrgb(175, 80, 232)
HSLhsl(278, 77%, 61%)
HSVhsv(278, 66%, 91%)
CMYKcmyk(24.6%, 65.5%, 0%, 9%)
CIE-LABlab(52.60, 63.09, -61.04)
CIE-LCHlch(52.60, 87.79, 315.94°)
OKLaboklab(61.89% 0.1453 -0.1724)
OKLCHoklch(61.89% 0.225 310.1)
XYZxyz(35.1105, 20.6782, 78.4700)
Luminance0.2068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50E8 #89E850
analogous
#6350E8 #AF50E8 #E850D5
triadic
#AF50E8 #E8AF50 #50E8AF
tetradic
#AF50E8 #E86350 #89E850 #50D5E8
square
#AF50E8 #E86350 #89E850 #50D5E8
split-complementary
#AF50E8 #D5E850 #50E863
monochromatic
#7116A8 #951DDE #AF50E8 #C886EF #E0BCF6

Accessibility & contrast

On white

4.09
#AF50E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#AF50E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50E8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50E8#FFFFFF#000000##000000
##AF50E81.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079ED
Deuteranopia (green-blind)
#3A7FE5
Tritanopia (blue-blind)
#A76F95
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af50e8;
/* rgb */ color: rgb(175, 80, 232);
/* oklch */ color: oklch(61.9% 0.225 310.1);
Tailwind
colors: {
  custom: {
    50: '#cb87f0',
    500: '#af50e8',
    950: '#000000',
  },
}
SCSS
$custom: #af50e8;
$custom-light: #cb87f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af50e8",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 232
  },
  "hsl": {
    "h": 277.5,
    "s": 76.768,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61889,
    "c": 0.22549,
    "h": 310.1
  },
  "luminance": 0.20677
}

Semantic roles & 50–950 ramp

primary
#AF50E8
secondary
#C3E6AD
accent
#D90D59
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF50E8

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

Preview Lab → · Contrast checker → · Palette generator →

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