#AF6EF2#AF6EF2

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

Color values

HEX#AF6EF2
RGBrgb(175, 110, 242)
HSLhsl(270, 84%, 69%)
HSVhsv(270, 55%, 95%)
CMYKcmyk(27.7%, 54.5%, 0%, 5.1%)
CIE-LABlab(58.67, 50.56, -56.89)
CIE-LCHlch(58.67, 76.11, 311.63°)
OKLaboklab(66.5% 0.1097 -0.1603)
OKLCHoklch(66.5% 0.194 304.4)
XYZxyz(39.2786, 26.6768, 87.0670)
Luminance0.2668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6EF2 #B1F26E
analogous
#6E6FF2 #AF6EF2 #F16EF2
triadic
#AF6EF2 #F2AF6E #6EF2AF
tetradic
#AF6EF2 #F26E6F #B1F26E #6EF2F1
square
#AF6EF2 #F26E6F #B1F26E #6EF2F1
split-complementary
#AF6EF2 #F2F16E #6FF26E
monochromatic
#7113D3 #9036ED #AF6EF2 #CEA6F7 #EDDEFC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF6EF2#FFFFFF#000000##000000
##AF6EF21.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)
#3E8BF6
Deuteranopia (green-blind)
#548DEF
Tritanopia (blue-blind)
#A387A6
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6ef2;
/* rgb */ color: rgb(175, 110, 242);
/* oklch */ color: oklch(66.5% 0.194 304.4);
Tailwind
colors: {
  custom: {
    50: '#ca9af7',
    500: '#af6ef2',
    950: '#000000',
  },
}
SCSS
$custom: #af6ef2;
$custom-light: #ca9af7;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ef2",
  "rgb": {
    "r": 175,
    "g": 110,
    "b": 242
  },
  "hsl": {
    "h": 269.545,
    "s": 83.544,
    "l": 69.02
  },
  "oklch": {
    "l": 0.66502,
    "c": 0.19425,
    "h": 304.4
  },
  "luminance": 0.26677
}

Semantic roles & 50–950 ramp

primary
#AF6EF2
secondary
#DEF1CB
accent
#E00674
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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