#AF7BFD#AF7BFD

#AF7BFD is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.1% C 0.188 H 300.0°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#AF7BFD
RGBrgb(175, 123, 253)
HSLhsl(264, 97%, 74%)
HSVhsv(264, 51%, 99%)
CMYKcmyk(30.8%, 51.4%, 0%, 0.8%)
CIE-LABlab(61.97, 46.21, -57.70)
CIE-LCHlch(61.97, 73.92, 308.69°)
OKLaboklab(69.14% 0.0939 -0.1627)
OKLCHoklch(69.14% 0.188 300)
XYZxyz(42.4876, 30.3714, 96.5333)
Luminance0.3037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BFD #C9FD7B
analogous
#7B88FD #AF7BFD #F07BFD
triadic
#AF7BFD #FDAF7B #7BFDAF
tetradic
#AF7BFD #FD7B88 #C9FD7B #7BFDF0
square
#AF7BFD #FD7B88 #C9FD7B #7BFDF0
split-complementary
#AF7BFD #FDF07B #88FD7B
monochromatic
#6604FA #8A3FFC #AF7BFD #D4B7FE #EDE1FF

Accessibility & contrast

On white

2.97
#AF7BFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#AF7BFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7BFD
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BFD#FFFFFF#000000##000000
##AF7BFD1.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C95FF
Deuteranopia (green-blind)
#5B95FA
Tritanopia (blue-blind)
#9F94B1
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7bfd;
/* rgb */ color: rgb(175, 123, 253);
/* oklch */ color: oklch(69.1% 0.188 300.0);
Tailwind
colors: {
  custom: {
    50: '#caa2ff',
    500: '#af7bfd',
    950: '#000000',
  },
}
SCSS
$custom: #af7bfd;
$custom-light: #caa2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bfd",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 253
  },
  "hsl": {
    "h": 264,
    "s": 97.015,
    "l": 73.725
  },
  "oklch": {
    "l": 0.69137,
    "c": 0.18788,
    "h": 300
  },
  "luminance": 0.30372
}

Semantic roles & 50–950 ramp

primary
#AF7BFD
secondary
#E9F7D4
accent
#E6008A
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7BFD

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

Preview Lab → · Contrast checker → · Palette generator →

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