#AF85F7#AF85F7

#AF85F7 is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.4% C 0.165 H 299.1°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#AF85F7
RGBrgb(175, 133, 247)
HSLhsl(262, 88%, 75%)
HSVhsv(262, 46%, 97%)
CMYKcmyk(29.1%, 46.2%, 0%, 3.1%)
CIE-LABlab(63.84, 39.26, -51.43)
CIE-LCHlch(63.84, 64.70, 307.36°)
OKLaboklab(70.43% 0.0804 -0.1444)
OKLCHoklch(70.43% 0.165 299.1)
XYZxyz(42.8513, 32.6041, 92.0133)
Luminance0.3260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF85F7 #CDF785
analogous
#8594F7 #AF85F7 #E885F7
triadic
#AF85F7 #F7AF85 #85F7AF
tetradic
#AF85F7 #F78594 #CDF785 #85F7E8
square
#AF85F7 #F78594 #CDF785 #85F7E8
split-complementary
#AF85F7 #F7E885 #94F785
monochromatic
#6412EF #894CF3 #AF85F7 #D5BEFB #ECE2FD

Accessibility & contrast

On white

2.79
#AF85F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#AF85F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF85F7
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF85F7#FFFFFF#000000##000000
##AF85F71.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#629BFB
Deuteranopia (green-blind)
#6B9AF4
Tritanopia (blue-blind)
#A09AB2
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af85f7;
/* rgb */ color: rgb(175, 133, 247);
/* oklch */ color: oklch(70.4% 0.165 299.1);
Tailwind
colors: {
  custom: {
    50: '#c9a9fa',
    500: '#af85f7',
    950: '#000000',
  },
}
SCSS
$custom: #af85f7;
$custom-light: #c9a9fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af85f7",
  "rgb": {
    "r": 175,
    "g": 133,
    "b": 247
  },
  "hsl": {
    "h": 262.105,
    "s": 87.692,
    "l": 74.51
  },
  "oklch": {
    "l": 0.70426,
    "c": 0.16533,
    "h": 299.1
  },
  "luminance": 0.32604
}

Semantic roles & 50–950 ramp

primary
#AF85F7
secondary
#EAF5D6
accent
#E40191
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF85F7

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

Preview Lab → · Contrast checker → · Palette generator →

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