#AF7DEB#AF7DEB

#AF7DEB is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.5% C 0.163 H 303.4°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#AF7DEB
RGBrgb(175, 125, 235)
HSLhsl(267, 73%, 71%)
HSVhsv(267, 47%, 92%)
CMYKcmyk(25.5%, 46.8%, 0%, 7.8%)
CIE-LABlab(61.46, 40.82, -48.57)
CIE-LCHlch(61.46, 63.44, 310.04°)
OKLaboklab(68.45% 0.0896 -0.1361)
OKLCHoklch(68.45% 0.163 303.4)
XYZxyz(40.0049, 29.7794, 82.2216)
Luminance0.2978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DEB #B9EB7D
analogous
#7D82EB #AF7DEB #E67DEB
triadic
#AF7DEB #EBAF7D #7DEBAF
tetradic
#AF7DEB #EB7D82 #B9EB7D #7DEBE6
square
#AF7DEB #EB7D82 #B9EB7D #7DEBE6
split-complementary
#AF7DEB #EBE67D #82EB7D
monochromatic
#6F20CE #8E48E3 #AF7DEB #D0B2F3 #EFE4FB

Accessibility & contrast

On white

3.02
#AF7DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#AF7DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7DEB
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DEB#FFFFFF#000000##000000
##AF7DEB1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E93EF
Deuteranopia (green-blind)
#6A94E8
Tritanopia (blue-blind)
#A590A9
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af7deb;
/* rgb */ color: rgb(175, 125, 235);
/* oklch */ color: oklch(68.5% 0.163 303.4);
Tailwind
colors: {
  custom: {
    50: '#c9a3f2',
    500: '#af7deb',
    950: '#000000',
  },
}
SCSS
$custom: #af7deb;
$custom-light: #c9a3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af7deb",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 267.273,
    "s": 73.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.68452,
    "c": 0.16292,
    "h": 303.4
  },
  "luminance": 0.29779
}

Semantic roles & 50–950 ramp

primary
#AF7DEB
secondary
#E3F1D3
accent
#D5107C
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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