#AF7DE8#AF7DE8

#AF7DE8 is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.3% C 0.159 H 304.1°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#AF7DE8
RGBrgb(175, 125, 232)
HSLhsl(268, 70%, 70%)
HSVhsv(268, 46%, 91%)
CMYKcmyk(24.6%, 46.1%, 0%, 9%)
CIE-LABlab(61.31, 40.11, -47.14)
CIE-LCHlch(61.31, 61.90, 310.40°)
OKLaboklab(68.29% 0.0892 -0.1319)
OKLCHoklch(68.29% 0.159 304.1)
XYZxyz(39.5752, 29.6075, 79.9582)
Luminance0.2961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DE8 #B6E87D
analogous
#7D81E8 #AF7DE8 #E47DE8
triadic
#AF7DE8 #E8AF7D #7DE8AF
tetradic
#AF7DE8 #E87D81 #B6E87D #7DE8E4
square
#AF7DE8 #E87D81 #B6E87D #7DE8E4
split-complementary
#AF7DE8 #E8E47D #81E87D
monochromatic
#7023C7 #8F49DF #AF7DE8 #CFB1F1 #EFE5FA

Accessibility & contrast

On white

3.03
#AF7DE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#AF7DE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7DE8
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DE8#FFFFFF#000000##000000
##AF7DE81.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6093EC
Deuteranopia (green-blind)
#6C94E5
Tritanopia (blue-blind)
#A58FA8
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af7de8;
/* rgb */ color: rgb(175, 125, 232);
/* oklch */ color: oklch(68.3% 0.159 304.1);
Tailwind
colors: {
  custom: {
    50: '#c9a3f0',
    500: '#af7de8',
    950: '#000000',
  },
}
SCSS
$custom: #af7de8;
$custom-light: #c9a3f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af7de8",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 232
  },
  "hsl": {
    "h": 268.037,
    "s": 69.935,
    "l": 70
  },
  "oklch": {
    "l": 0.68291,
    "c": 0.15925,
    "h": 304.1
  },
  "luminance": 0.29607
}

Semantic roles & 50–950 ramp

primary
#AF7DE8
secondary
#E1EFD1
accent
#D21479
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF7DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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