#AF5FF1#AF5FF1

#AF5FF1 is a light, highly saturated violet. Relative luminance 0.236; OKLCH L 64.3% C 0.215 H 306.6°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF5FF1
RGBrgb(175, 95, 241)
HSLhsl(273, 84%, 66%)
HSVhsv(273, 61%, 95%)
CMYKcmyk(27.4%, 60.6%, 0%, 5.5%)
CIE-LABlab(55.74, 57.99, -61.04)
CIE-LCHlch(55.74, 84.19, 313.53°)
OKLaboklab(64.33% 0.1279 -0.1725)
OKLCHoklch(64.33% 0.215 306.6)
XYZxyz(37.6452, 23.6496, 85.7837)
Luminance0.2365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FF1 #A1F15F
analogous
#665FF1 #AF5FF1 #F15FEA
triadic
#AF5FF1 #F1AF5F #5FF1AF
tetradic
#AF5FF1 #F1665F #A1F15F #5FEAF1
square
#AF5FF1 #F1665F #A1F15F #5FEAF1
split-complementary
#AF5FF1 #EAF15F #5FF166
monochromatic
#7311C4 #9327EC #AF5FF1 #CB97F6 #E7D0FB

Accessibility & contrast

On white

3.67
#AF5FF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#AF5FF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FF1
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FF1#FFFFFF#000000##000000
##AF5FF11.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1183F6
Deuteranopia (green-blind)
#4386EE
Tritanopia (blue-blind)
#A47C9F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af5ff1;
/* rgb */ color: rgb(175, 95, 241);
/* oklch */ color: oklch(64.3% 0.215 306.6);
Tailwind
colors: {
  custom: {
    50: '#cb90f6',
    500: '#af5ff1',
    950: '#000000',
  },
}
SCSS
$custom: #af5ff1;
$custom-light: #cb90f6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ff1",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 241
  },
  "hsl": {
    "h": 272.877,
    "s": 83.908,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64335,
    "c": 0.21469,
    "h": 306.6
  },
  "luminance": 0.23649
}

Semantic roles & 50–950 ramp

primary
#AF5FF1
secondary
#D4EEBE
accent
#E00568
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5FF1

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

Preview Lab → · Contrast checker → · Palette generator →

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