#AF60EC#AF60EC

#AF60EC is a light, highly saturated violet. Relative luminance 0.235; OKLCH L 64.2% C 0.208 H 307.6°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF60EC
RGBrgb(175, 96, 236)
HSLhsl(274, 79%, 65%)
HSVhsv(274, 59%, 93%)
CMYKcmyk(25.8%, 59.3%, 0%, 7.5%)
CIE-LABlab(55.62, 56.37, -58.43)
CIE-LCHlch(55.62, 81.19, 313.97°)
OKLaboklab(64.16% 0.1268 -0.1648)
OKLCHoklch(64.16% 0.208 307.6)
XYZxyz(36.9993, 23.5363, 81.9344)
Luminance0.2354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF60EC #9DEC60
analogous
#6960EC #AF60EC #EC60E3
triadic
#AF60EC #ECAF60 #60ECAF
tetradic
#AF60EC #EC6960 #9DEC60 #60E3EC
square
#AF60EC #EC6960 #9DEC60 #60E3EC
split-complementary
#AF60EC #E3EC60 #60EC69
monochromatic
#7316BB #9329E5 #AF60EC #CB97F3 #E6CDF9

Accessibility & contrast

On white

3.68
#AF60EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#AF60EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF60EC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF60EC#FFFFFF#000000##000000
##AF60EC1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2382F0
Deuteranopia (green-blind)
#4986E9
Tritanopia (blue-blind)
#A67B9D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af60ec;
/* rgb */ color: rgb(175, 96, 236);
/* oklch */ color: oklch(64.2% 0.208 307.6);
Tailwind
colors: {
  custom: {
    50: '#cb91f3',
    500: '#af60ec',
    950: '#000000',
  },
}
SCSS
$custom: #af60ec;
$custom-light: #cb91f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af60ec",
  "rgb": {
    "r": 175,
    "g": 96,
    "b": 236
  },
  "hsl": {
    "h": 273.857,
    "s": 78.652,
    "l": 65.098
  },
  "oklch": {
    "l": 0.64156,
    "c": 0.20794,
    "h": 307.6
  },
  "luminance": 0.23536
}

Semantic roles & 50–950 ramp

primary
#AF60EC
secondary
#D1ECBC
accent
#DB0B65
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF60EC

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

Preview Lab → · Contrast checker → · Palette generator →

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