#AF7FDB#AF7FDB

#AF7FDB is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.0% C 0.140 H 307.1°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#AF7FDB
RGBrgb(175, 127, 219)
HSLhsl(271, 56%, 68%)
HSVhsv(271, 42%, 86%)
CMYKcmyk(20.1%, 42%, 0%, 14.1%)
CIE-LABlab(61.14, 36.01, -40.17)
CIE-LCHlch(61.14, 53.95, 311.88°)
OKLaboklab(67.96% 0.0844 -0.1117)
OKLCHoklch(67.96% 0.14 307.1)
XYZxyz(38.0522, 29.4075, 70.6757)
Luminance0.2941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FDB #ABDB7F
analogous
#817FDB #AF7FDB #DB7FD9
triadic
#AF7FDB #DBAF7F #7FDBAF
tetradic
#AF7FDB #DB817F #ABDB7F #7FD9DB
square
#AF7FDB #DB817F #ABDB7F #7FD9DB
split-complementary
#AF7FDB #D9DB7F #7FDB81
monochromatic
#7331AF #914FCE #AF7FDB #CDAFE8 #EBDFF6

Accessibility & contrast

On white

3.05
#AF7FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#AF7FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7FDB
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FDB#FFFFFF#000000##000000
##AF7FDB1.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A92DE
Deuteranopia (green-blind)
#7594D9
Tritanopia (blue-blind)
#A98EA3
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af7fdb;
/* rgb */ color: rgb(175, 127, 219);
/* oklch */ color: oklch(68.0% 0.140 307.1);
Tailwind
colors: {
  custom: {
    50: '#c8a5e6',
    500: '#af7fdb',
    950: '#000000',
  },
}
SCSS
$custom: #af7fdb;
$custom-light: #c8a5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af7fdb",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 219
  },
  "hsl": {
    "h": 271.304,
    "s": 56.098,
    "l": 67.843
  },
  "oklch": {
    "l": 0.67958,
    "c": 0.14002,
    "h": 307.1
  },
  "luminance": 0.29407
}

Semantic roles & 50–950 ramp

primary
#AF7FDB
secondary
#DAE9CD
accent
#C4226F
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF7FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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