#AF62EC#AF62EC

#AF62EC is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.4% C 0.205 H 307.3°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF62EC
RGBrgb(175, 98, 236)
HSLhsl(273, 78%, 65%)
HSVhsv(273, 58%, 93%)
CMYKcmyk(25.8%, 58.5%, 0%, 7.5%)
CIE-LABlab(55.99, 55.37, -57.83)
CIE-LCHlch(55.99, 80.07, 313.75°)
OKLaboklab(64.43% 0.1244 -0.1631)
OKLCHoklch(64.43% 0.205 307.3)
XYZxyz(37.1841, 23.9059, 81.9960)
Luminance0.2391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF62EC #9FEC62
analogous
#6A62EC #AF62EC #EC62E4
triadic
#AF62EC #ECAF62 #62ECAF
tetradic
#AF62EC #EC6A62 #9FEC62 #62E4EC
square
#AF62EC #EC6A62 #9FEC62 #62E4EC
split-complementary
#AF62EC #E4EC62 #62EC6A
monochromatic
#7317BD #932BE5 #AF62EC #CB99F3 #E7CFF9

Accessibility & contrast

On white

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

On black

5.78
#AF62EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF62EC
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF62EC#FFFFFF#000000##000000
##AF62EC1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2983F0
Deuteranopia (green-blind)
#4C87E9
Tritanopia (blue-blind)
#A67D9E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af62ec;
/* rgb */ color: rgb(175, 98, 236);
/* oklch */ color: oklch(64.4% 0.205 307.3);
Tailwind
colors: {
  custom: {
    50: '#ca92f3',
    500: '#af62ec',
    950: '#000000',
  },
}
SCSS
$custom: #af62ec;
$custom-light: #ca92f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af62ec",
  "rgb": {
    "r": 175,
    "g": 98,
    "b": 236
  },
  "hsl": {
    "h": 273.478,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.64427,
    "c": 0.20509,
    "h": 307.3
  },
  "luminance": 0.23905
}

Semantic roles & 50–950 ramp

primary
#AF62EC
secondary
#D2ECBE
accent
#DB0B67
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF62EC

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

Preview Lab → · Contrast checker → · Palette generator →

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