#AF7FF4#AF7FF4

#AF7FF4 is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.3% C 0.171 H 301.0°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#AF7FF4
RGBrgb(175, 127, 244)
HSLhsl(265, 84%, 73%)
HSVhsv(265, 48%, 96%)
CMYKcmyk(28.3%, 48%, 0%, 4.3%)
CIE-LABlab(62.36, 41.85, -52.13)
CIE-LCHlch(62.36, 66.85, 308.76°)
OKLaboklab(69.27% 0.088 -0.1465)
OKLCHoklch(69.27% 0.171 301)
XYZxyz(41.5940, 30.8242, 89.3288)
Luminance0.3082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FF4 #C4F47F
analogous
#7F8AF4 #AF7FF4 #E97FF4
triadic
#AF7FF4 #F4AF7F #7FF4AF
tetradic
#AF7FF4 #F47F8A #C4F47F #7FF4E9
square
#AF7FF4 #F47F8A #C4F47F #7FF4E9
split-complementary
#AF7FF4 #F4E97F #8AF47F
monochromatic
#6A14E5 #8C47EF #AF7FF4 #D2B7F9 #EDE3FD

Accessibility & contrast

On white

2.93
#AF7FF4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#AF7FF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7FF4
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FF4#FFFFFF#000000##000000
##AF7FF41.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A96F8
Deuteranopia (green-blind)
#6696F1
Tritanopia (blue-blind)
#A294AE
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af7ff4;
/* rgb */ color: rgb(175, 127, 244);
/* oklch */ color: oklch(69.3% 0.171 301.0);
Tailwind
colors: {
  custom: {
    50: '#caa5f8',
    500: '#af7ff4',
    950: '#000000',
  },
}
SCSS
$custom: #af7ff4;
$custom-light: #caa5f8;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ff4",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 244
  },
  "hsl": {
    "h": 264.615,
    "s": 84.173,
    "l": 72.745
  },
  "oklch": {
    "l": 0.69269,
    "c": 0.17085,
    "h": 301
  },
  "luminance": 0.30824
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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