#AF7CF6#AF7CF6

#AF7CF6 is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.9% C 0.178 H 301.2°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#AF7CF6
RGBrgb(175, 124, 246)
HSLhsl(265, 87%, 73%)
HSVhsv(265, 50%, 96%)
CMYKcmyk(28.9%, 49.6%, 0%, 3.5%)
CIE-LABlab(61.81, 43.98, -54.10)
CIE-LCHlch(61.81, 69.72, 309.11°)
OKLaboklab(68.9% 0.0921 -0.1522)
OKLCHoklch(68.9% 0.178 301.2)
XYZxyz(41.5176, 30.1829, 90.8095)
Luminance0.3018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CF6 #C3F67C
analogous
#7C86F6 #AF7CF6 #EC7CF6
triadic
#AF7CF6 #F6AF7C #7CF6AF
tetradic
#AF7CF6 #F67C86 #C3F67C #7CF6EC
square
#AF7CF6 #F67C86 #C3F67C #7CF6EC
split-complementary
#AF7CF6 #F6EC7C #86F67C
monochromatic
#6A10E8 #8C43F2 #AF7CF6 #D2B5FA #EEE2FD

Accessibility & contrast

On white

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

On black

7.04
#AF7CF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7CF6
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7CF6#FFFFFF#000000##000000
##AF7CF61.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5495FA
Deuteranopia (green-blind)
#6295F3
Tritanopia (blue-blind)
#A193AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7cf6;
/* rgb */ color: rgb(175, 124, 246);
/* oklch */ color: oklch(68.9% 0.178 301.2);
Tailwind
colors: {
  custom: {
    50: '#caa3fa',
    500: '#af7cf6',
    950: '#000000',
  },
}
SCSS
$custom: #af7cf6;
$custom-light: #caa3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af7cf6",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 246
  },
  "hsl": {
    "h": 265.082,
    "s": 87.143,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68895,
    "c": 0.1779,
    "h": 301.2
  },
  "luminance": 0.30183
}

Semantic roles & 50–950 ramp

primary
#AF7CF6
secondary
#E8F5D6
accent
#E40285
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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