#AF7DF7#AF7DF7

#AF7DF7 is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.1% C 0.178 H 300.8°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#AF7DF7
RGBrgb(175, 125, 247)
HSLhsl(265, 88%, 73%)
HSVhsv(265, 49%, 97%)
CMYKcmyk(29.1%, 49.4%, 0%, 3.1%)
CIE-LABlab(62.08, 43.67, -54.22)
CIE-LCHlch(62.08, 69.62, 308.85°)
OKLaboklab(69.11% 0.0909 -0.1526)
OKLCHoklch(69.11% 0.178 300.8)
XYZxyz(41.7974, 30.4964, 91.6620)
Luminance0.3050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DF7 #C5F77D
analogous
#7D88F7 #AF7DF7 #EC7DF7
triadic
#AF7DF7 #F7AF7D #7DF7AF
tetradic
#AF7DF7 #F77D88 #C5F77D #7DF7EC
square
#AF7DF7 #F77D88 #C5F77D #7DF7EC
split-complementary
#AF7DF7 #F7EC7D #88F77D
monochromatic
#690EEB #8C43F3 #AF7DF7 #D2B7FB #EDE2FD

Accessibility & contrast

On white

2.96
#AF7DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#AF7DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7DF7
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DF7#FFFFFF#000000##000000
##AF7DF71.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5595FB
Deuteranopia (green-blind)
#6295F4
Tritanopia (blue-blind)
#A194AF
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7df7;
/* rgb */ color: rgb(175, 125, 247);
/* oklch */ color: oklch(69.1% 0.178 300.8);
Tailwind
colors: {
  custom: {
    50: '#caa4fa',
    500: '#af7df7',
    950: '#000000',
  },
}
SCSS
$custom: #af7df7;
$custom-light: #caa4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af7df7",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 264.59,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69112,
    "c": 0.17759,
    "h": 300.8
  },
  "luminance": 0.30497
}

Semantic roles & 50–950 ramp

primary
#AF7DF7
secondary
#E8F5D6
accent
#E50087
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF7DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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