#AF91EB#AF91EB

#AF91EB is a light, vivid violet. Relative luminance 0.354; OKLCH L 71.9% C 0.131 H 298.4°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#AF91EB
RGBrgb(175, 145, 235)
HSLhsl(260, 69%, 75%)
HSVhsv(260, 38%, 92%)
CMYKcmyk(25.5%, 38.3%, 0%, 7.8%)
CIE-LABlab(66.03, 29.65, -41.38)
CIE-LCHlch(66.03, 50.91, 305.63°)
OKLaboklab(71.89% 0.0623 -0.1153)
OKLCHoklch(71.89% 0.131 298.4)
XYZxyz(42.7965, 35.3626, 83.1521)
Luminance0.3536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF91EB #CDEB91
analogous
#91A0EB #AF91EB #DC91EB
triadic
#AF91EB #EBAF91 #91EBAF
tetradic
#AF91EB #EB91A0 #CDEB91 #91EBDC
square
#AF91EB #EB91A0 #CDEB91 #91EBDC
split-complementary
#AF91EB #EBDC91 #A0EB91
monochromatic
#6429D8 #895DE2 #AF91EB #D5C5F4 #ECE5FA

Accessibility & contrast

On white

2.60
#AF91EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#AF91EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF91EB
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF91EB#FFFFFF#000000##000000
##AF91EB1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA1EE
Deuteranopia (green-blind)
#7FA0E9
Tritanopia (blue-blind)
#A3A0B3
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #af91eb;
/* rgb */ color: rgb(175, 145, 235);
/* oklch */ color: oklch(71.9% 0.131 298.4);
Tailwind
colors: {
  custom: {
    50: '#c8b1f2',
    500: '#af91eb',
    950: '#000000',
  },
}
SCSS
$custom: #af91eb;
$custom-light: #c8b1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af91eb",
  "rgb": {
    "r": 175,
    "g": 145,
    "b": 235
  },
  "hsl": {
    "h": 260,
    "s": 69.231,
    "l": 74.51
  },
  "oklch": {
    "l": 0.71893,
    "c": 0.13103,
    "h": 298.4
  },
  "luminance": 0.35363
}

Semantic roles & 50–950 ramp

primary
#AF91EB
secondary
#EAF2D9
accent
#D11492
background
#FCFAFE
surface
#F8F5FD
border
#D1CFD5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF91EB

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

Preview Lab → · Contrast checker → · Palette generator →

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