#AF8EFA#AF8EFA

#AF8EFA is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.1% C 0.155 H 296.4°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#AF8EFA
RGBrgb(175, 142, 250)
HSLhsl(258, 92%, 77%)
HSVhsv(258, 43%, 98%)
CMYKcmyk(30%, 43.2%, 0%, 2%)
CIE-LABlab(66.03, 34.98, -49.61)
CIE-LCHlch(66.03, 60.70, 305.18°)
OKLaboklab(72.12% 0.069 -0.1391)
OKLCHoklch(72.12% 0.155 296.4)
XYZxyz(44.6033, 35.3615, 94.8995)
Luminance0.3536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8EFA #D9FA8E
analogous
#8EA3FA #AF8EFA #E58EFA
triadic
#AF8EFA #FAAF8E #8EFAAF
tetradic
#AF8EFA #FA8EA3 #D9FA8E #8EFAE5
square
#AF8EFA #FA8EA3 #D9FA8E #8EFAE5
split-complementary
#AF8EFA #FAE58E #A3FA8E
monochromatic
#5C19F5 #8653F7 #AF8EFA #D8C9FD #EAE2FE

Accessibility & contrast

On white

2.60
#AF8EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#AF8EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8EFA
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8EFA#FFFFFF#000000##000000
##AF8EFA1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA1FE
Deuteranopia (green-blind)
#739FF7
Tritanopia (blue-blind)
#9FA2B8
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #af8efa;
/* rgb */ color: rgb(175, 142, 250);
/* oklch */ color: oklch(72.1% 0.155 296.4);
Tailwind
colors: {
  custom: {
    50: '#c9affc',
    500: '#af8efa',
    950: '#000000',
  },
}
SCSS
$custom: #af8efa;
$custom-light: #c9affc;
$custom-dark: #000000;
JSON
{
  "hex": "#af8efa",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 250
  },
  "hsl": {
    "h": 258.333,
    "s": 91.525,
    "l": 76.863
  },
  "oklch": {
    "l": 0.72121,
    "c": 0.15532,
    "h": 296.4
  },
  "luminance": 0.35362
}

Semantic roles & 50–950 ramp

primary
#AF8EFA
secondary
#ECF6D5
accent
#E6009F
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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