#AF8DEC#AF8DEC

#AF8DEC is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.2% C 0.139 H 299.4°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#AF8DEC
RGBrgb(175, 141, 236)
HSLhsl(261, 71%, 74%)
HSVhsv(261, 40%, 93%)
CMYKcmyk(25.8%, 40.3%, 0%, 7.5%)
CIE-LABlab(65.14, 32.14, -43.33)
CIE-LCHlch(65.14, 53.95, 306.56°)
OKLaboklab(71.23% 0.068 -0.1209)
OKLCHoklch(71.23% 0.139 299.4)
XYZxyz(42.3409, 34.2196, 83.7150)
Luminance0.3422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8DEC #CAEC8D
analogous
#8D9BEC #AF8DEC #DF8DEC
triadic
#AF8DEC #ECAF8D #8DECAF
tetradic
#AF8DEC #EC8D9B #CAEC8D #8DECDF
square
#AF8DEC #EC8D9B #CAEC8D #8DECDF
split-complementary
#AF8DEC #ECDF8D #9BEC8D
monochromatic
#6524DA #8A59E3 #AF8DEC #D4C1F5 #EDE5FB

Accessibility & contrast

On white

2.68
#AF8DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#AF8DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8DEC
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8DEC#FFFFFF#000000##000000
##AF8DEC1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#749EF0
Deuteranopia (green-blind)
#7A9DEA
Tritanopia (blue-blind)
#A39DB1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af8dec;
/* rgb */ color: rgb(175, 141, 236);
/* oklch */ color: oklch(71.2% 0.139 299.4);
Tailwind
colors: {
  custom: {
    50: '#c9aef2',
    500: '#af8dec',
    950: '#000000',
  },
}
SCSS
$custom: #af8dec;
$custom-light: #c9aef2;
$custom-dark: #000000;
JSON
{
  "hex": "#af8dec",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 261.474,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.71231,
    "c": 0.13872,
    "h": 299.4
  },
  "luminance": 0.3422
}

Semantic roles & 50–950 ramp

primary
#AF8DEC
secondary
#E9F2D9
accent
#D3128E
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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