#AF6CDD#AF6CDD

#AF6CDD is a light, vivid violet. Relative luminance 0.251; OKLCH L 65.0% C 0.173 H 309.8°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AF6CDD
RGBrgb(175, 108, 221)
HSLhsl(276, 62%, 65%)
HSVhsv(276, 51%, 87%)
CMYKcmyk(20.8%, 51.1%, 0%, 13.3%)
CIE-LABlab(57.13, 46.83, -47.61)
CIE-LCHlch(57.13, 66.78, 314.53°)
OKLaboklab(65% 0.1109 -0.1332)
OKLCHoklch(65% 0.173 309.8)
XYZxyz(36.0904, 25.0601, 71.3285)
Luminance0.2506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6CDD #9ADD6C
analogous
#776CDD #AF6CDD #DD6CD3
triadic
#AF6CDD #DDAF6C #6CDDAF
tetradic
#AF6CDD #DD776C #9ADD6C #6CD3DD
square
#AF6CDD #DD776C #9ADD6C #6CD3DD
split-complementary
#AF6CDD #D3DD6C #6CDD77
monochromatic
#7327A8 #943AD2 #AF6CDD #CA9EE8 #E5CFF4

Accessibility & contrast

On white

3.49
#AF6CDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#AF6CDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6CDD
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6CDD#FFFFFF#000000##000000
##AF6CDD1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D86E1
Deuteranopia (green-blind)
#628ADA
Tritanopia (blue-blind)
#A97F9A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #af6cdd;
/* rgb */ color: rgb(175, 108, 221);
/* oklch */ color: oklch(65.0% 0.173 309.8);
Tailwind
colors: {
  custom: {
    50: '#c998e8',
    500: '#af6cdd',
    950: '#000000',
  },
}
SCSS
$custom: #af6cdd;
$custom-light: #c998e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af6cdd",
  "rgb": {
    "r": 175,
    "g": 108,
    "b": 221
  },
  "hsl": {
    "h": 275.575,
    "s": 62.431,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64999,
    "c": 0.17335,
    "h": 309.8
  },
  "luminance": 0.2506
}

Semantic roles & 50–950 ramp

primary
#AF6CDD
secondary
#CFE6BF
accent
#CA1B63
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF6CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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