#AF5FE6#AF5FE6

#AF5FE6 is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 63.7% C 0.203 H 309.1°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AF5FE6
RGBrgb(175, 95, 230)
HSLhsl(276, 73%, 64%)
HSVhsv(276, 59%, 90%)
CMYKcmyk(23.9%, 58.7%, 0%, 9.8%)
CIE-LABlab(55.08, 55.54, -55.93)
CIE-LCHlch(55.08, 78.82, 314.80°)
OKLaboklab(63.65% 0.128 -0.1575)
OKLCHoklch(63.65% 0.203 309.1)
XYZxyz(36.0515, 23.0121, 77.3902)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FE6 #96E65F
analogous
#6B5FE6 #AF5FE6 #E65FD9
triadic
#AF5FE6 #E6AF5F #5FE6AF
tetradic
#AF5FE6 #E66B5F #96E65F #5FD9E6
square
#AF5FE6 #E66B5F #96E65F #5FD9E6
split-complementary
#AF5FE6 #D9E65F #5FE66B
monochromatic
#731BAF #952ADE #AF5FE6 #C994EE #E4C9F7

Accessibility & contrast

On white

3.75
#AF5FE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#AF5FE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FE6
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FE6#FFFFFF#000000##000000
##AF5FE61.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A80EA
Deuteranopia (green-blind)
#4E85E3
Tritanopia (blue-blind)
#A7799A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5fe6;
/* rgb */ color: rgb(175, 95, 230);
/* oklch */ color: oklch(63.7% 0.203 309.1);
Tailwind
colors: {
  custom: {
    50: '#ca90ee',
    500: '#af5fe6',
    950: '#000000',
  },
}
SCSS
$custom: #af5fe6;
$custom-light: #ca90ee;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fe6",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 230
  },
  "hsl": {
    "h": 275.556,
    "s": 72.973,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63653,
    "c": 0.20294,
    "h": 309.1
  },
  "luminance": 0.23012
}

Semantic roles & 50–950 ramp

primary
#AF5FE6
secondary
#CCE8B9
accent
#D51061
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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