#AF7BFC#AF7BFC

#AF7BFC is a light, vivid violet. Relative luminance 0.303; OKLCH L 69.1% C 0.187 H 300.2°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#AF7BFC
RGBrgb(175, 123, 252)
HSLhsl(264, 96%, 74%)
HSVhsv(264, 51%, 99%)
CMYKcmyk(30.6%, 51.2%, 0%, 1.2%)
CIE-LABlab(61.92, 45.97, -57.23)
CIE-LCHlch(61.92, 73.41, 308.77°)
OKLaboklab(69.08% 0.0938 -0.1614)
OKLCHoklch(69.08% 0.187 300.2)
XYZxyz(42.3287, 30.3079, 95.6966)
Luminance0.3031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BFC #C8FC7B
analogous
#7B87FC #AF7BFC #EF7BFC
triadic
#AF7BFC #FCAF7B #7BFCAF
tetradic
#AF7BFC #FC7B87 #C8FC7B #7BFCEF
square
#AF7BFC #FC7B87 #C8FC7B #7BFCEF
split-complementary
#AF7BFC #FCEF7B #87FC7B
monochromatic
#6706F7 #8B3FFB #AF7BFC #D3B7FD #EDE1FE

Accessibility & contrast

On white

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

On black

7.06
#AF7BFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7BFC
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BFC#FFFFFF#000000##000000
##AF7BFC1.002.977.067.06
#FFFFFF2.971.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D95FF
Deuteranopia (green-blind)
#5C95F9
Tritanopia (blue-blind)
#9F94B0
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7bfc;
/* rgb */ color: rgb(175, 123, 252);
/* oklch */ color: oklch(69.1% 0.187 300.2);
Tailwind
colors: {
  custom: {
    50: '#caa2fe',
    500: '#af7bfc',
    950: '#000000',
  },
}
SCSS
$custom: #af7bfc;
$custom-light: #caa2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bfc",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 252
  },
  "hsl": {
    "h": 264.186,
    "s": 95.556,
    "l": 73.529
  },
  "oklch": {
    "l": 0.69079,
    "c": 0.18667,
    "h": 300.2
  },
  "luminance": 0.30308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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