#AF8CF3#AF8CF3

#AF8CF3 is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.4% C 0.149 H 298.2°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#AF8CF3
RGBrgb(175, 140, 243)
HSLhsl(260, 81%, 75%)
HSVhsv(260, 42%, 95%)
CMYKcmyk(28%, 42.4%, 0%, 4.7%)
CIE-LABlab(65.23, 34.38, -47.03)
CIE-LCHlch(65.23, 58.26, 306.17°)
OKLaboklab(71.41% 0.0706 -0.1316)
OKLCHoklch(71.41% 0.149 298.2)
XYZxyz(43.2311, 34.3408, 89.1275)
Luminance0.3434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CF3 #D0F38C
analogous
#8C9DF3 #AF8CF3 #E28CF3
triadic
#AF8CF3 #F3AF8C #8CF3AF
tetradic
#AF8CF3 #F38C9D #D0F38C #8CF3E2
square
#AF8CF3 #F38C9D #D0F38C #8CF3E2
split-complementary
#AF8CF3 #F3E28C #9DF38C
monochromatic
#621DE7 #8855ED #AF8CF3 #D6C3F9 #ECE3FC

Accessibility & contrast

On white

2.67
#AF8CF3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#AF8CF3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CF3
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CF3#FFFFFF#000000##000000
##AF8CF31.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9EF7
Deuteranopia (green-blind)
#759DF0
Tritanopia (blue-blind)
#A19EB4
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af8cf3;
/* rgb */ color: rgb(175, 140, 243);
/* oklch */ color: oklch(71.4% 0.149 298.2);
Tailwind
colors: {
  custom: {
    50: '#c9aef7',
    500: '#af8cf3',
    950: '#000000',
  },
}
SCSS
$custom: #af8cf3;
$custom-light: #c9aef7;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cf3",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 243
  },
  "hsl": {
    "h": 260.388,
    "s": 81.102,
    "l": 75.098
  },
  "oklch": {
    "l": 0.7141,
    "c": 0.14936,
    "h": 298.2
  },
  "luminance": 0.34341
}

Semantic roles & 50–950 ramp

primary
#AF8CF3
secondary
#EAF4D7
accent
#DD0895
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8CF3

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

Preview Lab → · Contrast checker → · Palette generator →

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