#AF7AEE#AF7AEE

#AF7AEE is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.1% C 0.171 H 303.3°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#AF7AEE
RGBrgb(175, 122, 238)
HSLhsl(267, 77%, 71%)
HSVhsv(267, 49%, 93%)
CMYKcmyk(26.5%, 48.7%, 0%, 6.7%)
CIE-LABlab(60.96, 43.17, -51.02)
CIE-LCHlch(60.96, 66.84, 310.23°)
OKLaboklab(68.13% 0.0939 -0.1432)
OKLCHoklch(68.13% 0.171 303.3)
XYZxyz(40.0680, 29.2061, 84.3988)
Luminance0.2921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AEE #B9EE7A
analogous
#7A7FEE #AF7AEE #E97AEE
triadic
#AF7AEE #EEAF7A #7AEEAF
tetradic
#AF7AEE #EE7A7F #B9EE7A #7AEEE9
square
#AF7AEE #EE7A7F #B9EE7A #7AEEE9
split-complementary
#AF7AEE #EEE97A #7FEE7A
monochromatic
#6F1BD3 #8E44E7 #AF7AEE #D0B0F5 #EFE4FC

Accessibility & contrast

On white

3.07
#AF7AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#AF7AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7AEE
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7AEE#FFFFFF#000000##000000
##AF7AEE1.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5792F2
Deuteranopia (green-blind)
#6593EB
Tritanopia (blue-blind)
#A48FA9
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7aee;
/* rgb */ color: rgb(175, 122, 238);
/* oklch */ color: oklch(68.1% 0.171 303.3);
Tailwind
colors: {
  custom: {
    50: '#c9a2f4',
    500: '#af7aee',
    950: '#000000',
  },
}
SCSS
$custom: #af7aee;
$custom-light: #c9a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af7aee",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 238
  },
  "hsl": {
    "h": 267.414,
    "s": 77.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.68128,
    "c": 0.17128,
    "h": 303.3
  },
  "luminance": 0.29206
}

Semantic roles & 50–950 ramp

primary
#AF7AEE
secondary
#E3F2D2
accent
#DA0C7C
background
#FCFAFE
surface
#F9F3FD
border
#D2CDD5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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