#AF7BF7#AF7BF7

#AF7BF7 is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.8% C 0.181 H 301.2°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#AF7BF7
RGBrgb(175, 123, 247)
HSLhsl(265, 89%, 73%)
HSVhsv(265, 50%, 97%)
CMYKcmyk(29.1%, 50.2%, 0%, 3.1%)
CIE-LABlab(61.65, 44.77, -54.91)
CIE-LCHlch(61.65, 70.84, 309.19°)
OKLaboklab(68.79% 0.0934 -0.1546)
OKLCHoklch(68.79% 0.181 301.2)
XYZxyz(41.5468, 29.9951, 91.5785)
Luminance0.2999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BF7 #C3F77B
analogous
#7B85F7 #AF7BF7 #ED7BF7
triadic
#AF7BF7 #F7AF7B #7BF7AF
tetradic
#AF7BF7 #F77B85 #C3F77B #7BF7ED
square
#AF7BF7 #F77B85 #C3F77B #7BF7ED
split-complementary
#AF7BF7 #F7ED7B #85F77B
monochromatic
#6A0EE9 #8C41F4 #AF7BF7 #D2B5FA #EEE2FD

Accessibility & contrast

On white

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

On black

7.00
#AF7BF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7BF7
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BF7#FFFFFF#000000##000000
##AF7BF71.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5194FB
Deuteranopia (green-blind)
#6094F4
Tritanopia (blue-blind)
#A192AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7bf7;
/* rgb */ color: rgb(175, 123, 247);
/* oklch */ color: oklch(68.8% 0.181 301.2);
Tailwind
colors: {
  custom: {
    50: '#caa2fa',
    500: '#af7bf7',
    950: '#000000',
  },
}
SCSS
$custom: #af7bf7;
$custom-light: #caa2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bf7",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 247
  },
  "hsl": {
    "h": 265.161,
    "s": 88.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68792,
    "c": 0.18063,
    "h": 301.2
  },
  "luminance": 0.29995
}

Semantic roles & 50–950 ramp

primary
#AF7BF7
secondary
#E8F5D6
accent
#E50085
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF7BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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