#AF7AFE#AF7AFE

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

Color values

HEX#AF7AFE
RGBrgb(175, 122, 254)
HSLhsl(264, 99%, 74%)
HSVhsv(264, 52%, 100%)
CMYKcmyk(31.1%, 52%, 0%, 0.4%)
CIE-LABlab(61.82, 47.00, -58.50)
CIE-LCHlch(61.82, 75.04, 308.78°)
OKLaboklab(69.04% 0.0952 -0.1651)
OKLCHoklch(69.04% 0.191 300)
XYZxyz(42.5239, 30.1885, 97.3334)
Luminance0.3019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AFE #C9FE7A
analogous
#7A87FE #AF7AFE #F17AFE
triadic
#AF7AFE #FEAF7A #7AFEAF
tetradic
#AF7AFE #FE7A87 #C9FE7A #7AFEF1
square
#AF7AFE #FE7A87 #C9FE7A #7AFEF1
split-complementary
#AF7AFE #FEF17A #87FE7A
monochromatic
#6602FC #8A3DFE #AF7AFE #D4B7FE #EDE1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF7AFE#FFFFFF#000000##000000
##AF7AFE1.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)
#4995FF
Deuteranopia (green-blind)
#5994FB
Tritanopia (blue-blind)
#9F93B1
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7afe;
/* rgb */ color: rgb(175, 122, 254);
/* oklch */ color: oklch(69.0% 0.191 300.0);
Tailwind
colors: {
  custom: {
    50: '#caa2ff',
    500: '#af7afe',
    950: '#000000',
  },
}
SCSS
$custom: #af7afe;
$custom-light: #caa2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af7afe",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 264.091,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.69038,
    "c": 0.19057,
    "h": 300
  },
  "luminance": 0.30189
}

Semantic roles & 50–950 ramp

primary
#AF7AFE
secondary
#E9F7D4
accent
#E60089
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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