#AF8BE9#AF8BE9

#AF8BE9 is a light, vivid violet. Relative luminance 0.335; OKLCH L 70.7% C 0.138 H 300.6°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#AF8BE9
RGBrgb(175, 139, 233)
HSLhsl(263, 68%, 73%)
HSVhsv(263, 40%, 91%)
CMYKcmyk(24.9%, 40.3%, 0%, 8.6%)
CIE-LABlab(64.53, 32.55, -42.62)
CIE-LCHlch(64.53, 53.63, 307.37°)
OKLaboklab(70.73% 0.0702 -0.1188)
OKLCHoklch(70.73% 0.138 300.6)
XYZxyz(41.6165, 33.4622, 81.3414)
Luminance0.3346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8BE9 #C5E98B
analogous
#8B96E9 #AF8BE9 #DE8BE9
triadic
#AF8BE9 #E9AF8B #8BE9AF
tetradic
#AF8BE9 #E98B96 #C5E98B #8BE9DE
square
#AF8BE9 #E98B96 #C5E98B #8BE9DE
split-complementary
#AF8BE9 #E9DE8B #96E98B
monochromatic
#6928D2 #8C58DF #AF8BE9 #D2BEF3 #EDE5FA

Accessibility & contrast

On white

2.73
#AF8BE9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#AF8BE9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8BE9
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8BE9#FFFFFF#000000##000000
##AF8BE91.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#739CED
Deuteranopia (green-blind)
#7A9CE7
Tritanopia (blue-blind)
#A49BAF
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af8be9;
/* rgb */ color: rgb(175, 139, 233);
/* oklch */ color: oklch(70.7% 0.138 300.6);
Tailwind
colors: {
  custom: {
    50: '#c8adf0',
    500: '#af8be9',
    950: '#000000',
  },
}
SCSS
$custom: #af8be9;
$custom-light: #c8adf0;
$custom-dark: #000000;
JSON
{
  "hex": "#af8be9",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 233
  },
  "hsl": {
    "h": 262.979,
    "s": 68.116,
    "l": 72.941
  },
  "oklch": {
    "l": 0.70729,
    "c": 0.13803,
    "h": 300.6
  },
  "luminance": 0.33462
}

Semantic roles & 50–950 ramp

primary
#AF8BE9
secondary
#E8F2D9
accent
#D01589
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF8BE9

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

Preview Lab → · Contrast checker → · Palette generator →

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