#AF7BEE#AF7BEE

#AF7BEE is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.3% C 0.170 H 303.1°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#AF7BEE
RGBrgb(175, 123, 238)
HSLhsl(267, 77%, 71%)
HSVhsv(267, 48%, 93%)
CMYKcmyk(26.5%, 48.3%, 0%, 6.7%)
CIE-LABlab(61.18, 42.62, -50.68)
CIE-LCHlch(61.18, 66.22, 310.06°)
OKLaboklab(68.29% 0.0926 -0.1422)
OKLCHoklch(68.29% 0.17 303.1)
XYZxyz(40.1914, 29.4530, 84.4400)
Luminance0.2945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BEE #BAEE7B
analogous
#7B80EE #AF7BEE #E87BEE
triadic
#AF7BEE #EEAF7B #7BEEAF
tetradic
#AF7BEE #EE7B80 #BAEE7B #7BEEE8
square
#AF7BEE #EE7B80 #BAEE7B #7BEEE8
split-complementary
#AF7BEE #EEE87B #80EE7B
monochromatic
#6E1BD3 #8E45E7 #AF7BEE #D0B1F5 #EFE4FC

Accessibility & contrast

On white

3.05
#AF7BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#AF7BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7BEE
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BEE#FFFFFF#000000##000000
##AF7BEE1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5893F2
Deuteranopia (green-blind)
#6693EB
Tritanopia (blue-blind)
#A490A9
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af7bee;
/* rgb */ color: rgb(175, 123, 238);
/* oklch */ color: oklch(68.3% 0.170 303.1);
Tailwind
colors: {
  custom: {
    50: '#c9a2f4',
    500: '#af7bee',
    950: '#000000',
  },
}
SCSS
$custom: #af7bee;
$custom-light: #c9a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bee",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 238
  },
  "hsl": {
    "h": 267.13,
    "s": 77.181,
    "l": 70.784
  },
  "oklch": {
    "l": 0.68289,
    "c": 0.16971,
    "h": 303.1
  },
  "luminance": 0.29453
}

Semantic roles & 50–950 ramp

primary
#AF7BEE
secondary
#E4F2D3
accent
#D90C7D
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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