#AF62EB#AF62EB

#AF62EB is a light, highly saturated violet. Relative luminance 0.238; OKLCH L 64.4% C 0.204 H 307.6°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF62EB
RGBrgb(175, 98, 235)
HSLhsl(274, 77%, 65%)
HSVhsv(274, 58%, 92%)
CMYKcmyk(25.5%, 58.3%, 0%, 7.8%)
CIE-LABlab(55.94, 55.15, -57.37)
CIE-LCHlch(55.94, 79.57, 313.87°)
OKLaboklab(64.37% 0.1244 -0.1617)
OKLCHoklch(64.37% 0.204 307.6)
XYZxyz(37.0392, 23.8479, 81.2330)
Luminance0.2385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF62EB #9EEB62
analogous
#6B62EB #AF62EB #EB62E2
triadic
#AF62EB #EBAF62 #62EBAF
tetradic
#AF62EB #EB6B62 #9EEB62 #62E2EB
square
#AF62EB #EB6B62 #9EEB62 #62E2EB
split-complementary
#AF62EB #E2EB62 #62EB6B
monochromatic
#7318BB #932CE4 #AF62EB #CB98F2 #E6CFF9

Accessibility & contrast

On white

3.64
#AF62EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#AF62EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF62EB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF62EB#FFFFFF#000000##000000
##AF62EB1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A83EF
Deuteranopia (green-blind)
#4C87E8
Tritanopia (blue-blind)
#A67C9D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af62eb;
/* rgb */ color: rgb(175, 98, 235);
/* oklch */ color: oklch(64.4% 0.204 307.6);
Tailwind
colors: {
  custom: {
    50: '#ca92f2',
    500: '#af62eb',
    950: '#000000',
  },
}
SCSS
$custom: #af62eb;
$custom-light: #ca92f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af62eb",
  "rgb": {
    "r": 175,
    "g": 98,
    "b": 235
  },
  "hsl": {
    "h": 273.723,
    "s": 77.401,
    "l": 65.294
  },
  "oklch": {
    "l": 0.64366,
    "c": 0.204,
    "h": 307.6
  },
  "luminance": 0.23847
}

Semantic roles & 50–950 ramp

primary
#AF62EB
secondary
#D2EBBD
accent
#DA0C66
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF62EB

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

Preview Lab → · Contrast checker → · Palette generator →

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