#AF7DFD#AF7DFD

#AF7DFD is a light, vivid violet. Relative luminance 0.309; OKLCH L 69.5% C 0.185 H 299.6°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#AF7DFD
RGBrgb(175, 125, 253)
HSLhsl(263, 97%, 74%)
HSVhsv(263, 51%, 99%)
CMYKcmyk(30.8%, 50.6%, 0%, 0.8%)
CIE-LABlab(62.40, 45.13, -57.02)
CIE-LCHlch(62.40, 72.71, 308.36°)
OKLaboklab(69.45% 0.0914 -0.1607)
OKLCHoklch(69.45% 0.185 299.6)
XYZxyz(42.7382, 30.8727, 96.6169)
Luminance0.3087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DFD #CBFD7D
analogous
#7D8BFD #AF7DFD #EF7DFD
triadic
#AF7DFD #FDAF7D #7DFDAF
tetradic
#AF7DFD #FD7D8B #CBFD7D #7DFDEF
square
#AF7DFD #FD7D8B #CBFD7D #7DFDEF
split-complementary
#AF7DFD #FDEF7D #8BFD7D
monochromatic
#6504FB #8A41FC #AF7DFD #D4B9FE #ECE1FF

Accessibility & contrast

On white

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

On black

7.17
#AF7DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7DFD
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DFD#FFFFFF#000000##000000
##AF7DFD1.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5097FF
Deuteranopia (green-blind)
#5D96FA
Tritanopia (blue-blind)
#9F95B1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af7dfd;
/* rgb */ color: rgb(175, 125, 253);
/* oklch */ color: oklch(69.5% 0.185 299.6);
Tailwind
colors: {
  custom: {
    50: '#caa4ff',
    500: '#af7dfd',
    950: '#000000',
  },
}
SCSS
$custom: #af7dfd;
$custom-light: #caa4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af7dfd",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 253
  },
  "hsl": {
    "h": 263.438,
    "s": 96.97,
    "l": 74.118
  },
  "oklch": {
    "l": 0.69454,
    "c": 0.1849,
    "h": 299.6
  },
  "luminance": 0.30873
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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