#AF62F9#AF62F9

#AF62F9 is a light, highly saturated violet. Relative luminance 0.247; OKLCH L 65.2% C 0.219 H 304.5°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AF62F9
RGBrgb(175, 98, 249)
HSLhsl(271, 93%, 68%)
HSVhsv(271, 61%, 98%)
CMYKcmyk(29.7%, 60.6%, 0%, 2.4%)
CIE-LABlab(56.77, 58.33, -63.82)
CIE-LCHlch(56.77, 86.46, 312.43°)
OKLaboklab(65.24% 0.1241 -0.1806)
OKLCHoklch(65.24% 0.219 304.5)
XYZxyz(39.1420, 24.6891, 92.3076)
Luminance0.2469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF62F9 #ACF962
analogous
#6362F9 #AF62F9 #F962F7
triadic
#AF62F9 #F9AF62 #62F9AF
tetradic
#AF62F9 #F96362 #ACF962 #62F7F9
square
#AF62F9 #F96362 #ACF962 #62F7F9
split-complementary
#AF62F9 #F7F962 #62F963
monochromatic
#7208D8 #9127F7 #AF62F9 #CD9DFB #EBD8FE

Accessibility & contrast

On white

3.54
#AF62F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#AF62F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF62F9
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF62F9#FFFFFF#000000##000000
##AF62F91.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0086FE
Deuteranopia (green-blind)
#3D88F6
Tritanopia (blue-blind)
#A281A5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af62f9;
/* rgb */ color: rgb(175, 98, 249);
/* oklch */ color: oklch(65.2% 0.219 304.5);
Tailwind
colors: {
  custom: {
    50: '#cb92fc',
    500: '#af62f9',
    950: '#000000',
  },
}
SCSS
$custom: #af62f9;
$custom-light: #cb92fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af62f9",
  "rgb": {
    "r": 175,
    "g": 98,
    "b": 249
  },
  "hsl": {
    "h": 270.596,
    "s": 92.638,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65243,
    "c": 0.21917,
    "h": 304.5
  },
  "luminance": 0.24689
}

Semantic roles & 50–950 ramp

primary
#AF62F9
secondary
#DBF2C4
accent
#E60070
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D18
muted
#827E86

Preview Lab

Preview with #AF62F9

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

Preview Lab → · Contrast checker → · Palette generator →

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