#AF5FFE#AF5FFE

#AF5FFE is a light, highly saturated violet. Relative luminance 0.245; OKLCH L 65.2% C 0.229 H 303.8°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AF5FFE
RGBrgb(175, 95, 254)
HSLhsl(270, 99%, 68%)
HSVhsv(270, 63%, 100%)
CMYKcmyk(31.1%, 62.6%, 0%, 0.4%)
CIE-LABlab(56.54, 60.95, -66.96)
CIE-LCHlch(56.54, 90.55, 312.31°)
OKLaboklab(65.18% 0.1273 -0.1899)
OKLCHoklch(65.18% 0.229 303.8)
XYZxyz(39.6567, 24.4542, 96.3776)
Luminance0.2445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FFE #AEFE5F
analogous
#5F5FFE #AF5FFE #FE5FFD
triadic
#AF5FFE #FEAF5F #5FFEAF
tetradic
#AF5FFE #FE5F5F #AEFE5F #5FFDFE
square
#AF5FFE #FE5F5F #AEFE5F #5FFDFE
split-complementary
#AF5FFE #FDFE5F #5FFE5F
monochromatic
#7201E1 #9122FE #AF5FFE #CD9CFE #ECD9FF

Accessibility & contrast

On white

3.56
#AF5FFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#AF5FFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FFE
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FFE#FFFFFF#000000##000000
##AF5FFE1.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0086FF
Deuteranopia (green-blind)
#3087FA
Tritanopia (blue-blind)
#A081A6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af5ffe;
/* rgb */ color: rgb(175, 95, 254);
/* oklch */ color: oklch(65.2% 0.229 303.8);
Tailwind
colors: {
  custom: {
    50: '#cc91ff',
    500: '#af5ffe',
    950: '#000000',
  },
}
SCSS
$custom: #af5ffe;
$custom-light: #cc91ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ffe",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 254
  },
  "hsl": {
    "h": 270.189,
    "s": 98.758,
    "l": 68.431
  },
  "oklch": {
    "l": 0.65175,
    "c": 0.22856,
    "h": 303.8
  },
  "luminance": 0.24454
}

Semantic roles & 50–950 ramp

primary
#AF5FFE
secondary
#DCF4C4
accent
#E60072
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#140D18
muted
#837E86

Preview Lab

Preview with #AF5FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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