#AF7FFB#AF7FFB

#AF7FFB is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.7% C 0.179 H 299.6°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#AF7FFB
RGBrgb(175, 127, 251)
HSLhsl(263, 94%, 74%)
HSVhsv(263, 49%, 98%)
CMYKcmyk(30.3%, 49.4%, 0%, 1.6%)
CIE-LABlab(62.72, 43.54, -55.40)
CIE-LCHlch(62.72, 70.47, 308.17°)
OKLaboklab(69.66% 0.0887 -0.156)
OKLCHoklch(69.66% 0.179 299.6)
XYZxyz(42.6770, 31.2574, 95.0330)
Luminance0.3126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FFB #CBFB7F
analogous
#7F8DFB #AF7FFB #ED7FFB
triadic
#AF7FFB #FBAF7F #7FFBAF
tetradic
#AF7FFB #FB7F8D #CBFB7F #7FFBED
square
#AF7FFB #FB7F8D #CBFB7F #7FFBED
split-complementary
#AF7FFB #FBED7F #8DFB7F
monochromatic
#6508F7 #8A44F9 #AF7FFB #D4BAFD #ECE1FE

Accessibility & contrast

On white

2.90
#AF7FFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#AF7FFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7FFB
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FFB#FFFFFF#000000##000000
##AF7FFB1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5597FF
Deuteranopia (green-blind)
#6197F8
Tritanopia (blue-blind)
#A096B1
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af7ffb;
/* rgb */ color: rgb(175, 127, 251);
/* oklch */ color: oklch(69.7% 0.179 299.6);
Tailwind
colors: {
  custom: {
    50: '#caa5fd',
    500: '#af7ffb',
    950: '#000000',
  },
}
SCSS
$custom: #af7ffb;
$custom-light: #caa5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ffb",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 251
  },
  "hsl": {
    "h": 263.226,
    "s": 93.939,
    "l": 74.118
  },
  "oklch": {
    "l": 0.6966,
    "c": 0.17945,
    "h": 299.6
  },
  "luminance": 0.31258
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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