#AF8EE3#AF8EE3

#AF8EE3 is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.0% C 0.125 H 301.1°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#AF8EE3
RGBrgb(175, 142, 227)
HSLhsl(263, 60%, 72%)
HSVhsv(263, 37%, 89%)
CMYKcmyk(22.9%, 37.4%, 0%, 11%)
CIE-LABlab(64.97, 29.45, -38.63)
CIE-LCHlch(64.97, 48.57, 307.32°)
OKLaboklab(70.97% 0.0648 -0.1073)
OKLCHoklch(70.97% 0.125 301.1)
XYZxyz(41.2143, 34.0059, 77.0507)
Luminance0.3401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8EE3 #C2E38E
analogous
#8E98E3 #AF8EE3 #DA8EE3
triadic
#AF8EE3 #E3AF8E #8EE3AF
tetradic
#AF8EE3 #E38E98 #C2E38E #8EE3DA
square
#AF8EE3 #E38E98 #C2E38E #8EE3DA
split-complementary
#AF8EE3 #E3DA8E #98E38E
monochromatic
#6B31C6 #8C5DD7 #AF8EE3 #D2BFEF #EEE6F9

Accessibility & contrast

On white

2.69
#AF8EE3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#AF8EE3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8EE3
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8EE3#FFFFFF#000000##000000
##AF8EE31.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#799DE6
Deuteranopia (green-blind)
#809DE1
Tritanopia (blue-blind)
#A69CAE
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af8ee3;
/* rgb */ color: rgb(175, 142, 227);
/* oklch */ color: oklch(71.0% 0.125 301.1);
Tailwind
colors: {
  custom: {
    50: '#c8afec',
    500: '#af8ee3',
    950: '#000000',
  },
}
SCSS
$custom: #af8ee3;
$custom-light: #c8afec;
$custom-dark: #000000;
JSON
{
  "hex": "#af8ee3",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 227
  },
  "hsl": {
    "h": 263.294,
    "s": 60.284,
    "l": 72.353
  },
  "oklch": {
    "l": 0.7097,
    "c": 0.12538,
    "h": 301.1
  },
  "luminance": 0.34006
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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