#AF7CF5#AF7CF5

#AF7CF5 is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.8% C 0.177 H 301.4°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#AF7CF5
RGBrgb(175, 124, 245)
HSLhsl(265, 86%, 72%)
HSVhsv(265, 49%, 96%)
CMYKcmyk(28.6%, 49.4%, 0%, 3.9%)
CIE-LABlab(61.76, 43.74, -53.63)
CIE-LCHlch(61.76, 69.21, 309.20°)
OKLaboklab(68.84% 0.092 -0.1509)
OKLCHoklch(68.84% 0.177 301.4)
XYZxyz(41.3645, 30.1217, 90.0034)
Luminance0.3012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CF5 #C2F57C
analogous
#7C86F5 #AF7CF5 #EB7CF5
triadic
#AF7CF5 #F5AF7C #7CF5AF
tetradic
#AF7CF5 #F57C86 #C2F57C #7CF5EB
square
#AF7CF5 #F57C86 #C2F57C #7CF5EB
split-complementary
#AF7CF5 #F5EB7C #86F57C
monochromatic
#6B11E5 #8C43F1 #AF7CF5 #D2B5F9 #EEE3FD

Accessibility & contrast

On white

2.99
#AF7CF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#AF7CF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7CF5
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7CF5#FFFFFF#000000##000000
##AF7CF51.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5594F9
Deuteranopia (green-blind)
#6295F2
Tritanopia (blue-blind)
#A292AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7cf5;
/* rgb */ color: rgb(175, 124, 245);
/* oklch */ color: oklch(68.8% 0.177 301.4);
Tailwind
colors: {
  custom: {
    50: '#caa3f9',
    500: '#af7cf5',
    950: '#000000',
  },
}
SCSS
$custom: #af7cf5;
$custom-light: #caa3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#af7cf5",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 245
  },
  "hsl": {
    "h": 265.289,
    "s": 85.816,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68839,
    "c": 0.17668,
    "h": 301.4
  },
  "luminance": 0.30122
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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