#AF7BFB#AF7BFB

#AF7BFB is a light, vivid violet. Relative luminance 0.302; OKLCH L 69.0% C 0.185 H 300.4°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#AF7BFB
RGBrgb(175, 123, 251)
HSLhsl(264, 94%, 73%)
HSVhsv(264, 51%, 98%)
CMYKcmyk(30.3%, 51%, 0%, 1.6%)
CIE-LABlab(61.86, 45.73, -56.77)
CIE-LCHlch(61.86, 72.90, 308.85°)
OKLaboklab(69.02% 0.0938 -0.16)
OKLCHoklch(69.02% 0.185 300.4)
XYZxyz(42.1707, 30.2447, 94.8642)
Luminance0.3024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BFB #C7FB7B
analogous
#7B87FB #AF7BFB #EF7BFB
triadic
#AF7BFB #FBAF7B #7BFBAF
tetradic
#AF7BFB #FB7B87 #C7FB7B #7BFBEF
square
#AF7BFB #FB7B87 #C7FB7B #7BFBEF
split-complementary
#AF7BFB #FBEF7B #87FB7B
monochromatic
#6807F4 #8B40F9 #AF7BFB #D3B6FD #EDE1FE

Accessibility & contrast

On white

2.98
#AF7BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#AF7BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7BFB
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BFB#FFFFFF#000000##000000
##AF7BFB1.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E95FF
Deuteranopia (green-blind)
#5C95F8
Tritanopia (blue-blind)
#A093B0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7bfb;
/* rgb */ color: rgb(175, 123, 251);
/* oklch */ color: oklch(69.0% 0.185 300.4);
Tailwind
colors: {
  custom: {
    50: '#caa2fd',
    500: '#af7bfb',
    950: '#000000',
  },
}
SCSS
$custom: #af7bfb;
$custom-light: #caa2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bfb",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 251
  },
  "hsl": {
    "h": 264.375,
    "s": 94.118,
    "l": 73.333
  },
  "oklch": {
    "l": 0.69021,
    "c": 0.18546,
    "h": 300.4
  },
  "luminance": 0.30245
}

Semantic roles & 50–950 ramp

primary
#AF7BFB
secondary
#E9F6D5
accent
#E60088
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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