#AF8EE2#AF8EE2

#AF8EE2 is a light, vivid violet. Relative luminance 0.340; OKLCH L 70.9% C 0.124 H 301.4°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#AF8EE2
RGBrgb(175, 142, 226)
HSLhsl(264, 59%, 72%)
HSVhsv(264, 37%, 89%)
CMYKcmyk(22.6%, 37.2%, 0%, 11.4%)
CIE-LABlab(64.92, 29.22, -38.14)
CIE-LCHlch(64.92, 48.05, 307.45°)
OKLaboklab(70.92% 0.0646 -0.1059)
OKLCHoklch(70.92% 0.124 301.4)
XYZxyz(41.0767, 33.9509, 76.3259)
Luminance0.3395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8EE2 #C1E28E
analogous
#8E97E2 #AF8EE2 #D98EE2
triadic
#AF8EE2 #E2AF8E #8EE2AF
tetradic
#AF8EE2 #E28E97 #C1E28E #8EE2D9
square
#AF8EE2 #E28E97 #C1E28E #8EE2D9
split-complementary
#AF8EE2 #E2D98E #97E28E
monochromatic
#6B32C3 #8D5DD6 #AF8EE2 #D1BFEE #EEE7F9

Accessibility & contrast

On white

2.70
#AF8EE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#AF8EE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8EE2
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8EE2#FFFFFF#000000##000000
##AF8EE21.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A9DE5
Deuteranopia (green-blind)
#809DE0
Tritanopia (blue-blind)
#A69CAD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af8ee2;
/* rgb */ color: rgb(175, 142, 226);
/* oklch */ color: oklch(70.9% 0.124 301.4);
Tailwind
colors: {
  custom: {
    50: '#c8afeb',
    500: '#af8ee2',
    950: '#000000',
  },
}
SCSS
$custom: #af8ee2;
$custom-light: #c8afeb;
$custom-dark: #000000;
JSON
{
  "hex": "#af8ee2",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 226
  },
  "hsl": {
    "h": 263.571,
    "s": 59.155,
    "l": 72.157
  },
  "oklch": {
    "l": 0.70922,
    "c": 0.12407,
    "h": 301.4
  },
  "luminance": 0.33951
}

Semantic roles & 50–950 ramp

primary
#AF8EE2
secondary
#E8F0DB
accent
#C71F85
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF8EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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