#AF7BF8#AF7BF8

#AF7BF8 is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.8% C 0.182 H 301.0°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#AF7BF8
RGBrgb(175, 123, 248)
HSLhsl(265, 90%, 73%)
HSVhsv(265, 50%, 97%)
CMYKcmyk(29.4%, 50.4%, 0%, 2.7%)
CIE-LABlab(61.70, 45.01, -55.38)
CIE-LCHlch(61.70, 71.36, 309.10°)
OKLaboklab(68.85% 0.0935 -0.1559)
OKLCHoklch(68.85% 0.182 301)
XYZxyz(41.7015, 30.0570, 92.3933)
Luminance0.3006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BF8 #C4F87B
analogous
#7B85F8 #AF7BF8 #ED7BF8
triadic
#AF7BF8 #F8AF7B #7BF8AF
tetradic
#AF7BF8 #F87B85 #C4F87B #7BF8ED
square
#AF7BF8 #F87B85 #C4F87B #7BF8ED
split-complementary
#AF7BF8 #F8ED7B #85F87B
monochromatic
#6A0DEC #8C41F5 #AF7BF8 #D2B5FB #EDE2FD

Accessibility & contrast

On white

3.00
#AF7BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.01
#AF7BF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7BF8
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BF8#FFFFFF#000000##000000
##AF7BF81.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5194FC
Deuteranopia (green-blind)
#5F94F5
Tritanopia (blue-blind)
#A192AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7bf8;
/* rgb */ color: rgb(175, 123, 248);
/* oklch */ color: oklch(68.8% 0.182 301.0);
Tailwind
colors: {
  custom: {
    50: '#caa2fb',
    500: '#af7bf8',
    950: '#000000',
  },
}
SCSS
$custom: #af7bf8;
$custom-light: #caa2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bf8",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 248
  },
  "hsl": {
    "h": 264.96,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68849,
    "c": 0.18184,
    "h": 301
  },
  "luminance": 0.30057
}

Semantic roles & 50–950 ramp

primary
#AF7BF8
secondary
#E8F6D5
accent
#E60086
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF7BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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