#AF7AFA#AF7AFA

#AF7AFA is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.8% C 0.186 H 300.7°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#AF7AFA
RGBrgb(175, 122, 250)
HSLhsl(265, 93%, 73%)
HSVhsv(265, 51%, 98%)
CMYKcmyk(30%, 51.2%, 0%, 2%)
CIE-LABlab(61.60, 46.03, -56.64)
CIE-LCHlch(61.60, 72.99, 309.10°)
OKLaboklab(68.81% 0.095 -0.1596)
OKLCHoklch(68.81% 0.186 300.7)
XYZxyz(41.8900, 29.9350, 93.9951)
Luminance0.2994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AFA #C5FA7A
analogous
#7A85FA #AF7AFA #EF7AFA
triadic
#AF7AFA #FAAF7A #7AFAAF
tetradic
#AF7AFA #FA7A85 #C5FA7A #7AFAEF
square
#AF7AFA #FA7A85 #C5FA7A #7AFAEF
split-complementary
#AF7AFA #FAEF7A #85FA7A
monochromatic
#6909F1 #8C3FF8 #AF7AFA #D2B5FC #EDE2FE

Accessibility & contrast

On white

3.01
#AF7AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#AF7AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7AFA
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7AFA#FFFFFF#000000##000000
##AF7AFA1.003.016.996.99
#FFFFFF3.011.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D94FE
Deuteranopia (green-blind)
#5C94F7
Tritanopia (blue-blind)
#A092AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7afa;
/* rgb */ color: rgb(175, 122, 250);
/* oklch */ color: oklch(68.8% 0.186 300.7);
Tailwind
colors: {
  custom: {
    50: '#caa2fc',
    500: '#af7afa',
    950: '#000000',
  },
}
SCSS
$custom: #af7afa;
$custom-light: #caa2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af7afa",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 264.844,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68806,
    "c": 0.18575,
    "h": 300.7
  },
  "luminance": 0.29935
}

Semantic roles & 50–950 ramp

primary
#AF7AFA
secondary
#E8F6D5
accent
#E60086
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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