#AF50E7#AF50E7

#AF50E7 is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.8% C 0.224 H 310.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF50E7
RGBrgb(175, 80, 231)
HSLhsl(278, 76%, 61%)
HSVhsv(278, 65%, 91%)
CMYKcmyk(24.2%, 65.4%, 0%, 9.4%)
CIE-LABlab(52.53, 62.88, -60.58)
CIE-LCHlch(52.53, 87.31, 316.06°)
OKLaboklab(61.82% 0.1454 -0.1711)
OKLCHoklch(61.82% 0.224 310.4)
XYZxyz(34.9689, 20.6215, 77.7240)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50E7 #88E750
analogous
#6350E7 #AF50E7 #E750D4
triadic
#AF50E7 #E7AF50 #50E7AF
tetradic
#AF50E7 #E76350 #88E750 #50D4E7
square
#AF50E7 #E76350 #88E750 #50D4E7
split-complementary
#AF50E7 #D4E750 #50E763
monochromatic
#7117A6 #951EDC #AF50E7 #C886EE #E0BCF6

Accessibility & contrast

On white

4.10
#AF50E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#AF50E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50E7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50E7#FFFFFF#000000##000000
##AF50E71.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#3B7FE4
Tritanopia (blue-blind)
#A86F95
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af50e7;
/* rgb */ color: rgb(175, 80, 231);
/* oklch */ color: oklch(61.8% 0.224 310.4);
Tailwind
colors: {
  custom: {
    50: '#cb87ef',
    500: '#af50e7',
    950: '#000000',
  },
}
SCSS
$custom: #af50e7;
$custom-light: #cb87ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af50e7",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 231
  },
  "hsl": {
    "h": 277.748,
    "s": 75.879,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61824,
    "c": 0.22449,
    "h": 310.4
  },
  "luminance": 0.20621
}

Semantic roles & 50–950 ramp

primary
#AF50E7
secondary
#C2E6AD
accent
#D80D59
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF50E7

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

Preview Lab → · Contrast checker → · Palette generator →

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