#AF61EC#AF61EC

#AF61EC is a light, highly saturated violet. Relative luminance 0.237; OKLCH L 64.3% C 0.207 H 307.4°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF61EC
RGBrgb(175, 97, 236)
HSLhsl(274, 79%, 65%)
HSVhsv(274, 59%, 93%)
CMYKcmyk(25.8%, 58.9%, 0%, 7.5%)
CIE-LABlab(55.81, 55.87, -58.13)
CIE-LCHlch(55.81, 80.63, 313.86°)
OKLaboklab(64.29% 0.1256 -0.164)
OKLCHoklch(64.29% 0.207 307.4)
XYZxyz(37.0911, 23.7199, 81.9650)
Luminance0.2372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF61EC #9EEC61
analogous
#6961EC #AF61EC #EC61E3
triadic
#AF61EC #ECAF61 #61ECAF
tetradic
#AF61EC #EC6961 #9EEC61 #61E3EC
square
#AF61EC #EC6961 #9EEC61 #61E3EC
split-complementary
#AF61EC #E3EC61 #61EC69
monochromatic
#7317BC #932AE5 #AF61EC #CB98F3 #E6CEF9

Accessibility & contrast

On white

3.66
#AF61EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#AF61EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF61EC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF61EC#FFFFFF#000000##000000
##AF61EC1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2683F0
Deuteranopia (green-blind)
#4A86E9
Tritanopia (blue-blind)
#A67C9E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af61ec;
/* rgb */ color: rgb(175, 97, 236);
/* oklch */ color: oklch(64.3% 0.207 307.4);
Tailwind
colors: {
  custom: {
    50: '#ca91f3',
    500: '#af61ec',
    950: '#000000',
  },
}
SCSS
$custom: #af61ec;
$custom-light: #ca91f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af61ec",
  "rgb": {
    "r": 175,
    "g": 97,
    "b": 236
  },
  "hsl": {
    "h": 273.669,
    "s": 78.531,
    "l": 65.294
  },
  "oklch": {
    "l": 0.64291,
    "c": 0.20651,
    "h": 307.4
  },
  "luminance": 0.23719
}

Semantic roles & 50–950 ramp

primary
#AF61EC
secondary
#D2ECBD
accent
#DB0B66
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF61EC

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

Preview Lab → · Contrast checker → · Palette generator →

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