#AF6EDF#AF6EDF

#AF6EDF is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.4% C 0.172 H 309.0°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AF6EDF
RGBrgb(175, 110, 223)
HSLhsl(275, 64%, 65%)
HSVhsv(275, 51%, 87%)
CMYKcmyk(21.5%, 50.7%, 0%, 12.5%)
CIE-LABlab(57.65, 46.21, -47.91)
CIE-LCHlch(57.65, 66.57, 313.97°)
OKLaboklab(65.41% 0.1084 -0.1341)
OKLCHoklch(65.41% 0.172 309)
XYZxyz(36.5718, 25.5941, 72.8113)
Luminance0.2559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6EDF #9EDF6E
analogous
#766EDF #AF6EDF #DF6ED7
triadic
#AF6EDF #DFAF6E #6EDFAF
tetradic
#AF6EDF #DF766E #9EDF6E #6ED7DF
square
#AF6EDF #DF766E #9EDF6E #6ED7DF
split-complementary
#AF6EDF #D7DF6E #6EDF76
monochromatic
#7326AD #933CD4 #AF6EDF #CBA0EA #E6D2F5

Accessibility & contrast

On white

3.43
#AF6EDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#AF6EDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6EDF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6EDF#FFFFFF#000000##000000
##AF6EDF1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F88E3
Deuteranopia (green-blind)
#628BDC
Tritanopia (blue-blind)
#A9819C
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af6edf;
/* rgb */ color: rgb(175, 110, 223);
/* oklch */ color: oklch(65.4% 0.172 309.0);
Tailwind
colors: {
  custom: {
    50: '#c999e9',
    500: '#af6edf',
    950: '#000000',
  },
}
SCSS
$custom: #af6edf;
$custom-light: #c999e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af6edf",
  "rgb": {
    "r": 175,
    "g": 110,
    "b": 223
  },
  "hsl": {
    "h": 274.513,
    "s": 63.842,
    "l": 65.294
  },
  "oklch": {
    "l": 0.65414,
    "c": 0.17246,
    "h": 309
  },
  "luminance": 0.25594
}

Semantic roles & 50–950 ramp

primary
#AF6EDF
secondary
#D2E7C1
accent
#CC1A65
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF6EDF

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

Preview Lab → · Contrast checker → · Palette generator →

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