#AF85EC#AF85EC

#AF85EC is a light, vivid violet. Relative luminance 0.319; OKLCH L 69.8% C 0.151 H 301.4°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#AF85EC
RGBrgb(175, 133, 236)
HSLhsl(264, 73%, 72%)
HSVhsv(264, 44%, 93%)
CMYKcmyk(25.8%, 43.6%, 0%, 7.5%)
CIE-LABlab(63.30, 36.62, -46.23)
CIE-LCHlch(63.30, 58.97, 308.38°)
OKLaboklab(69.84% 0.0789 -0.1293)
OKLCHoklch(69.84% 0.151 301.4)
XYZxyz(41.2037, 31.9451, 83.3359)
Luminance0.3195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF85EC #C2EC85
analogous
#858FEC #AF85EC #E385EC
triadic
#AF85EC #ECAF85 #85ECAF
tetradic
#AF85EC #EC858F #C2EC85 #85ECE3
square
#AF85EC #EC858F #C2EC85 #85ECE3
split-complementary
#AF85EC #ECE385 #8FEC85
monochromatic
#6B21D5 #8C50E4 #AF85EC #D2BAF4 #EEE5FB

Accessibility & contrast

On white

2.84
#AF85EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#AF85EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF85EC
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF85EC#FFFFFF#000000##000000
##AF85EC1.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6999F0
Deuteranopia (green-blind)
#7299E9
Tritanopia (blue-blind)
#A497AD
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af85ec;
/* rgb */ color: rgb(175, 133, 236);
/* oklch */ color: oklch(69.8% 0.151 301.4);
Tailwind
colors: {
  custom: {
    50: '#c9a9f2',
    500: '#af85ec',
    950: '#000000',
  },
}
SCSS
$custom: #af85ec;
$custom-light: #c9a9f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af85ec",
  "rgb": {
    "r": 175,
    "g": 133,
    "b": 236
  },
  "hsl": {
    "h": 264.466,
    "s": 73.05,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69843,
    "c": 0.15147,
    "h": 301.4
  },
  "luminance": 0.31945
}

Semantic roles & 50–950 ramp

primary
#AF85EC
secondary
#E8F3D8
accent
#D51085
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF85EC

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

Preview Lab → · Contrast checker → · Palette generator →

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