#AF7BF5#AF7BF5

#AF7BF5 is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.7% C 0.178 H 301.6°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#AF7BF5
RGBrgb(175, 123, 245)
HSLhsl(266, 86%, 72%)
HSVhsv(266, 50%, 96%)
CMYKcmyk(28.6%, 49.8%, 0%, 3.9%)
CIE-LABlab(61.54, 44.29, -53.97)
CIE-LCHlch(61.54, 69.82, 309.37°)
OKLaboklab(68.68% 0.0933 -0.1519)
OKLCHoklch(68.68% 0.178 301.6)
XYZxyz(41.2398, 29.8723, 89.9618)
Luminance0.2987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BF5 #C1F57B
analogous
#7B84F5 #AF7BF5 #EC7BF5
triadic
#AF7BF5 #F5AF7B #7BF5AF
tetradic
#AF7BF5 #F57B84 #C1F57B #7BF5EC
square
#AF7BF5 #F57B84 #C1F57B #7BF5EC
split-complementary
#AF7BF5 #F5EC7B #84F57B
monochromatic
#6B11E4 #8D42F1 #AF7BF5 #D1B4F9 #EEE3FD

Accessibility & contrast

On white

3.01
#AF7BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#AF7BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7BF5
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BF5#FFFFFF#000000##000000
##AF7BF51.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5394F9
Deuteranopia (green-blind)
#6194F2
Tritanopia (blue-blind)
#A292AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7bf5;
/* rgb */ color: rgb(175, 123, 245);
/* oklch */ color: oklch(68.7% 0.178 301.6);
Tailwind
colors: {
  custom: {
    50: '#caa2f9',
    500: '#af7bf5',
    950: '#000000',
  },
}
SCSS
$custom: #af7bf5;
$custom-light: #caa2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bf5",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 245
  },
  "hsl": {
    "h": 265.574,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68679,
    "c": 0.17821,
    "h": 301.6
  },
  "luminance": 0.29872
}

Semantic roles & 50–950 ramp

primary
#AF7BF5
secondary
#E8F5D6
accent
#E20383
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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