#AF62ED#AF62ED

#AF62ED is a light, highly saturated violet. Relative luminance 0.240; OKLCH L 64.5% C 0.206 H 307.1°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF62ED
RGBrgb(175, 98, 237)
HSLhsl(273, 79%, 66%)
HSVhsv(273, 59%, 93%)
CMYKcmyk(26.2%, 58.6%, 0%, 7.1%)
CIE-LABlab(56.05, 55.60, -58.30)
CIE-LCHlch(56.05, 80.56, 313.64°)
OKLaboklab(64.49% 0.1244 -0.1644)
OKLCHoklch(64.49% 0.206 307.1)
XYZxyz(37.3298, 23.9642, 82.7633)
Luminance0.2396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF62ED #A0ED62
analogous
#6962ED #AF62ED #ED62E6
triadic
#AF62ED #EDAF62 #62EDAF
tetradic
#AF62ED #ED6962 #A0ED62 #62E6ED
square
#AF62ED #ED6962 #A0ED62 #62E6ED
split-complementary
#AF62ED #E6ED62 #62ED69
monochromatic
#7316BF #932BE7 #AF62ED #CB99F3 #E7D0FA

Accessibility & contrast

On white

3.63
#AF62ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#AF62ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF62ED
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF62ED#FFFFFF#000000##000000
##AF62ED1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2784F1
Deuteranopia (green-blind)
#4B87EA
Tritanopia (blue-blind)
#A57D9E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af62ed;
/* rgb */ color: rgb(175, 98, 237);
/* oklch */ color: oklch(64.5% 0.206 307.1);
Tailwind
colors: {
  custom: {
    50: '#ca92f3',
    500: '#af62ed',
    950: '#000000',
  },
}
SCSS
$custom: #af62ed;
$custom-light: #ca92f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af62ed",
  "rgb": {
    "r": 175,
    "g": 98,
    "b": 237
  },
  "hsl": {
    "h": 273.237,
    "s": 79.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64489,
    "c": 0.20617,
    "h": 307.1
  },
  "luminance": 0.23964
}

Semantic roles & 50–950 ramp

primary
#AF62ED
secondary
#D3EDBE
accent
#DC0A67
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF62ED

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

Preview Lab → · Contrast checker → · Palette generator →

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