#AF7CF7#AF7CF7

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

Color values

HEX#AF7CF7
RGBrgb(175, 124, 247)
HSLhsl(265, 88%, 73%)
HSVhsv(265, 50%, 97%)
CMYKcmyk(29.1%, 49.8%, 0%, 3.1%)
CIE-LABlab(61.86, 44.22, -54.57)
CIE-LCHlch(61.86, 70.23, 309.02°)
OKLaboklab(68.95% 0.0922 -0.1536)
OKLCHoklch(68.95% 0.179 301)
XYZxyz(41.6715, 30.2445, 91.6200)
Luminance0.3024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CF7 #C4F77C
analogous
#7C86F7 #AF7CF7 #EC7CF7
triadic
#AF7CF7 #F7AF7C #7CF7AF
tetradic
#AF7CF7 #F77C86 #C4F77C #7CF7EC
square
#AF7CF7 #F77C86 #C4F77C #7CF7EC
split-complementary
#AF7CF7 #F7EC7C #86F77C
monochromatic
#6A0EEA #8C42F3 #AF7CF7 #D2B6FB #EDE2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF7CF7#FFFFFF#000000##000000
##AF7CF71.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)
#5395FB
Deuteranopia (green-blind)
#6195F4
Tritanopia (blue-blind)
#A193AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7cf7;
/* rgb */ color: rgb(175, 124, 247);
/* oklch */ color: oklch(69.0% 0.179 301.0);
Tailwind
colors: {
  custom: {
    50: '#caa3fa',
    500: '#af7cf7',
    950: '#000000',
  },
}
SCSS
$custom: #af7cf7;
$custom-light: #caa3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af7cf7",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 247
  },
  "hsl": {
    "h": 264.878,
    "s": 88.489,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68952,
    "c": 0.17911,
    "h": 301
  },
  "luminance": 0.30245
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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