#AF5EF6#AF5EF6

#AF5EF6 is a light, highly saturated violet. Relative luminance 0.238; OKLCH L 64.5% C 0.221 H 305.6°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AF5EF6
RGBrgb(175, 94, 246)
HSLhsl(272, 89%, 67%)
HSVhsv(272, 62%, 96%)
CMYKcmyk(28.9%, 61.8%, 0%, 3.5%)
CIE-LABlab(55.86, 59.61, -63.62)
CIE-LCHlch(55.86, 87.18, 313.14°)
OKLaboklab(64.52% 0.1288 -0.18)
OKLCHoklch(64.52% 0.221 305.6)
XYZxyz(38.3128, 23.7735, 89.7413)
Luminance0.2377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EF6 #A5F65E
analogous
#635EF6 #AF5EF6 #F65EF1
triadic
#AF5EF6 #F6AF5E #5EF6AF
tetradic
#AF5EF6 #F6635E #A5F65E #5EF1F6
square
#AF5EF6 #F6635E #A5F65E #5EF1F6
split-complementary
#AF5EF6 #F1F65E #5EF663
monochromatic
#730CCE #9224F3 #AF5EF6 #CC98F9 #E9D2FC

Accessibility & contrast

On white

3.65
#AF5EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#AF5EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EF6
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EF6#FFFFFF#000000##000000
##AF5EF61.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FB
Deuteranopia (green-blind)
#3B86F3
Tritanopia (blue-blind)
#A37DA2
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af5ef6;
/* rgb */ color: rgb(175, 94, 246);
/* oklch */ color: oklch(64.5% 0.221 305.6);
Tailwind
colors: {
  custom: {
    50: '#cb90fa',
    500: '#af5ef6',
    950: '#000000',
  },
}
SCSS
$custom: #af5ef6;
$custom-light: #cb90fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ef6",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 246
  },
  "hsl": {
    "h": 271.974,
    "s": 89.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.64523,
    "c": 0.22139,
    "h": 305.6
  },
  "luminance": 0.23773
}

Semantic roles & 50–950 ramp

primary
#AF5EF6
secondary
#D6F0BF
accent
#E6006B
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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