#AF6FEF#AF6FEF

#AF6FEF is a light, vivid violet. Relative luminance 0.267; OKLCH L 66.5% C 0.189 H 304.9°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#AF6FEF
RGBrgb(175, 111, 239)
HSLhsl(270, 80%, 69%)
HSVhsv(270, 54%, 94%)
CMYKcmyk(26.8%, 53.6%, 0%, 6.3%)
CIE-LABlab(58.71, 49.33, -55.16)
CIE-LCHlch(58.71, 74.00, 311.81°)
OKLaboklab(66.47% 0.1083 -0.1553)
OKLCHoklch(66.47% 0.189 304.9)
XYZxyz(38.9403, 26.7150, 84.7497)
Luminance0.2671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6FEF #AFEF6F
analogous
#6F6FEF #AF6FEF #EF6FEF
triadic
#AF6FEF #EFAF6F #6FEFAF
tetradic
#AF6FEF #EF6F6F #AFEF6F #6FEFEF
square
#AF6FEF #EF6F6F #AFEF6F #6FEFEF
split-complementary
#AF6FEF #EFEF6F #6FEF6F
monochromatic
#7217CD #9038E9 #AF6FEF #CEA6F5 #ECDDFB

Accessibility & contrast

On white

3.31
#AF6FEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#AF6FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6FEF
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6FEF#FFFFFF#000000##000000
##AF6FEF1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#438BF3
Deuteranopia (green-blind)
#588DEC
Tritanopia (blue-blind)
#A487A5
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6fef;
/* rgb */ color: rgb(175, 111, 239);
/* oklch */ color: oklch(66.5% 0.189 304.9);
Tailwind
colors: {
  custom: {
    50: '#ca9af5',
    500: '#af6fef',
    950: '#000000',
  },
}
SCSS
$custom: #af6fef;
$custom-light: #ca9af5;
$custom-dark: #000000;
JSON
{
  "hex": "#af6fef",
  "rgb": {
    "r": 175,
    "g": 111,
    "b": 239
  },
  "hsl": {
    "h": 270,
    "s": 80,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66475,
    "c": 0.18931,
    "h": 304.9
  },
  "luminance": 0.26715
}

Semantic roles & 50–950 ramp

primary
#AF6FEF
secondary
#DDF0CA
accent
#DC0973
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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