#AF50E6#AF50E6

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

Color values

HEX#AF50E6
RGBrgb(175, 80, 230)
HSLhsl(278, 75%, 61%)
HSVhsv(278, 65%, 90%)
CMYKcmyk(23.9%, 65.2%, 0%, 9.8%)
CIE-LABlab(52.47, 62.66, -60.12)
CIE-LCHlch(52.47, 86.84, 316.19°)
OKLaboklab(61.76% 0.1455 -0.1697)
OKLCHoklch(61.76% 0.224 310.6)
XYZxyz(34.8281, 20.5652, 76.9823)
Luminance0.2056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50E6 #87E650
analogous
#6450E6 #AF50E6 #E650D2
triadic
#AF50E6 #E6AF50 #50E6AF
tetradic
#AF50E6 #E66450 #87E650 #50D2E6
square
#AF50E6 #E66450 #87E650 #50D2E6
split-complementary
#AF50E6 #D2E650 #50E664
monochromatic
#7117A4 #951FDA #AF50E6 #C786EE #E0BBF5

Accessibility & contrast

On white

4.11
#AF50E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#AF50E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50E6
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50E6#FFFFFF#000000##000000
##AF50E61.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EB
Deuteranopia (green-blind)
#3D7FE3
Tritanopia (blue-blind)
#A86F94
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af50e6;
/* rgb */ color: rgb(175, 80, 230);
/* oklch */ color: oklch(61.8% 0.224 310.6);
Tailwind
colors: {
  custom: {
    50: '#cb87ef',
    500: '#af50e6',
    950: '#000000',
  },
}
SCSS
$custom: #af50e6;
$custom-light: #cb87ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af50e6",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 230
  },
  "hsl": {
    "h": 278,
    "s": 75,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61759,
    "c": 0.2235,
    "h": 310.6
  },
  "luminance": 0.20564
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF50E6

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

Preview Lab → · Contrast checker → · Palette generator →

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