#AF7AFF#AF7AFF

#AF7AFF is a light, vivid violet. Relative luminance 0.303; OKLCH L 69.1% C 0.192 H 299.8°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#AF7AFF
RGBrgb(175, 122, 255)
HSLhsl(264, 100%, 74%)
HSVhsv(264, 52%, 100%)
CMYKcmyk(31.4%, 52.2%, 0%, 0%)
CIE-LABlab(61.87, 47.24, -58.96)
CIE-LCHlch(61.87, 75.55, 308.70°)
OKLaboklab(69.1% 0.0953 -0.1664)
OKLCHoklch(69.1% 0.192 299.8)
XYZxyz(42.6844, 30.2527, 98.1789)
Luminance0.3025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AFF #CAFF7A
analogous
#7A88FF #AF7AFF #F27AFF
triadic
#AF7AFF #FFAF7A #7AFFAF
tetradic
#AF7AFF #FF7A88 #CAFF7A #7AFFF2
square
#AF7AFF #FF7A88 #CAFF7A #7AFFF2
split-complementary
#AF7AFF #FFF27A #88FF7A
monochromatic
#6500FF #8A3DFF #AF7AFF #D4B7FF #EDE0FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF7AFF#FFFFFF#000000##000000
##AF7AFF1.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)
#4895FF
Deuteranopia (green-blind)
#5895FC
Tritanopia (blue-blind)
#9F94B1
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7aff;
/* rgb */ color: rgb(175, 122, 255);
/* oklch */ color: oklch(69.1% 0.192 299.8);
Tailwind
colors: {
  custom: {
    50: '#caa2ff',
    500: '#af7aff',
    950: '#000000',
  },
}
SCSS
$custom: #af7aff;
$custom-light: #caa2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af7aff",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 263.91,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.69097,
    "c": 0.19177,
    "h": 299.8
  },
  "luminance": 0.30253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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