#AF7DFF#AF7DFF

#AF7DFF is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.6% C 0.187 H 299.2°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#AF7DFF
RGBrgb(175, 125, 255)
HSLhsl(263, 100%, 75%)
HSVhsv(263, 51%, 100%)
CMYKcmyk(31.4%, 51%, 0%, 0%)
CIE-LABlab(62.51, 45.61, -57.94)
CIE-LCHlch(62.51, 73.74, 308.21°)
OKLaboklab(69.57% 0.0915 -0.1635)
OKLCHoklch(69.57% 0.187 299.2)
XYZxyz(43.0585, 31.0008, 98.3036)
Luminance0.3100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DFF #CDFF7D
analogous
#7D8CFF #AF7DFF #F07DFF
triadic
#AF7DFF #FFAF7D #7DFFAF
tetradic
#AF7DFF #FF7D8C #CDFF7D #7DFFF0
square
#AF7DFF #FF7D8C #CDFF7D #7DFFF0
split-complementary
#AF7DFF #FFF07D #8CFF7D
monochromatic
#6403FF #8940FF #AF7DFF #D5BAFF #ECE0FF

Accessibility & contrast

On white

2.92
#AF7DFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#AF7DFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7DFF
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DFF#FFFFFF#000000##000000
##AF7DFF1.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E97FF
Deuteranopia (green-blind)
#5C96FC
Tritanopia (blue-blind)
#9E96B2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af7dff;
/* rgb */ color: rgb(175, 125, 255);
/* oklch */ color: oklch(69.6% 0.187 299.2);
Tailwind
colors: {
  custom: {
    50: '#caa4ff',
    500: '#af7dff',
    950: '#000000',
  },
}
SCSS
$custom: #af7dff;
$custom-light: #caa4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af7dff",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 255
  },
  "hsl": {
    "h": 263.077,
    "s": 100,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69569,
    "c": 0.18732,
    "h": 299.2
  },
  "luminance": 0.31001
}

Semantic roles & 50–950 ramp

primary
#AF7DFF
secondary
#EAF7D4
accent
#E6008D
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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