#AF6BEB#AF6BEB

#AF6BEB is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.6% C 0.191 H 306.4°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AF6BEB
RGBrgb(175, 107, 235)
HSLhsl(272, 76%, 67%)
HSVhsv(272, 54%, 92%)
CMYKcmyk(25.5%, 54.5%, 0%, 7.8%)
CIE-LABlab(57.68, 50.52, -54.58)
CIE-LCHlch(57.68, 74.37, 312.79°)
OKLaboklab(65.65% 0.1132 -0.1536)
OKLCHoklch(65.65% 0.191 306.4)
XYZxyz(37.9292, 25.6279, 81.5297)
Luminance0.2563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BEB #A7EB6B
analogous
#6F6BEB #AF6BEB #EB6BE7
triadic
#AF6BEB #EBAF6B #6BEBAF
tetradic
#AF6BEB #EB6F6B #A7EB6B #6BE7EB
square
#AF6BEB #EB6F6B #A7EB6B #6BE7EB
split-complementary
#AF6BEB #E7EB6B #6BEB6F
monochromatic
#731AC1 #9235E4 #AF6BEB #CCA1F2 #E9D7FA

Accessibility & contrast

On white

3.43
#AF6BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#AF6BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BEB
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BEB#FFFFFF#000000##000000
##AF6BEB1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F88EF
Deuteranopia (green-blind)
#578BE8
Tritanopia (blue-blind)
#A583A1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6beb;
/* rgb */ color: rgb(175, 107, 235);
/* oklch */ color: oklch(65.6% 0.191 306.4);
Tailwind
colors: {
  custom: {
    50: '#ca98f2',
    500: '#af6beb',
    950: '#000000',
  },
}
SCSS
$custom: #af6beb;
$custom-light: #ca98f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af6beb",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 235
  },
  "hsl": {
    "h": 271.875,
    "s": 76.19,
    "l": 67.059
  },
  "oklch": {
    "l": 0.65647,
    "c": 0.19076,
    "h": 306.4
  },
  "luminance": 0.25628
}

Semantic roles & 50–950 ramp

primary
#AF6BEB
secondary
#D8EDC5
accent
#D80D6C
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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