#AF7DEC#AF7DEC

#AF7DEC is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.5% C 0.164 H 303.1°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#AF7DEC
RGBrgb(175, 125, 236)
HSLhsl(267, 74%, 71%)
HSVhsv(267, 47%, 93%)
CMYKcmyk(25.8%, 47%, 0%, 7.5%)
CIE-LABlab(61.51, 41.05, -49.04)
CIE-LCHlch(61.51, 63.96, 309.93°)
OKLaboklab(68.51% 0.0897 -0.1375)
OKLCHoklch(68.51% 0.164 303.1)
XYZxyz(40.1498, 29.8374, 82.9846)
Luminance0.2984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DEC #BAEC7D
analogous
#7D82EC #AF7DEC #E67DEC
triadic
#AF7DEC #ECAF7D #7DECAF
tetradic
#AF7DEC #EC7D82 #BAEC7D #7DECE6
square
#AF7DEC #EC7D82 #BAEC7D #7DECE6
split-complementary
#AF7DEC #ECE67D #82EC7D
monochromatic
#6E1ED0 #8E48E4 #AF7DEC #D0B2F4 #EFE4FB

Accessibility & contrast

On white

3.01
#AF7DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#AF7DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7DEC
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DEC#FFFFFF#000000##000000
##AF7DEC1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D93F0
Deuteranopia (green-blind)
#6A94E9
Tritanopia (blue-blind)
#A491A9
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7dec;
/* rgb */ color: rgb(175, 125, 236);
/* oklch */ color: oklch(68.5% 0.164 303.1);
Tailwind
colors: {
  custom: {
    50: '#c9a4f2',
    500: '#af7dec',
    950: '#000000',
  },
}
SCSS
$custom: #af7dec;
$custom-light: #c9a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af7dec",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 267.027,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.68505,
    "c": 0.16414,
    "h": 303.1
  },
  "luminance": 0.29837
}

Semantic roles & 50–950 ramp

primary
#AF7DEC
secondary
#E4F1D3
accent
#D70F7D
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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