#AF7CE2#AF7CE2

#AF7CE2 is a light, vivid violet. Relative luminance 0.290; OKLCH L 67.8% C 0.154 H 305.8°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#AF7CE2
RGBrgb(175, 124, 226)
HSLhsl(270, 64%, 69%)
HSVhsv(270, 45%, 89%)
CMYKcmyk(22.6%, 45.1%, 0%, 11.4%)
CIE-LABlab(60.80, 39.27, -44.61)
CIE-LCHlch(60.80, 59.44, 311.36°)
OKLaboklab(67.81% 0.0897 -0.1246)
OKLCHoklch(67.81% 0.154 305.8)
XYZxyz(38.6115, 29.0205, 75.5042)
Luminance0.2902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CE2 #AFE27C
analogous
#7C7CE2 #AF7CE2 #E27CE2
triadic
#AF7CE2 #E2AF7C #7CE2AF
tetradic
#AF7CE2 #E27C7C #AFE27C #7CE2E2
square
#AF7CE2 #E27C7C #AFE27C #7CE2E2
split-complementary
#AF7CE2 #E2E27C #7CE27C
monochromatic
#7229BA #904AD7 #AF7CE2 #CEAEED #ECE0F8

Accessibility & contrast

On white

3.09
#AF7CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#AF7CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7CE2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7CE2#FFFFFF#000000##000000
##AF7CE21.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6291E6
Deuteranopia (green-blind)
#6F93DF
Tritanopia (blue-blind)
#A78DA4
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7ce2;
/* rgb */ color: rgb(175, 124, 226);
/* oklch */ color: oklch(67.8% 0.154 305.8);
Tailwind
colors: {
  custom: {
    50: '#c9a3eb',
    500: '#af7ce2',
    950: '#000000',
  },
}
SCSS
$custom: #af7ce2;
$custom-light: #c9a3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ce2",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 226
  },
  "hsl": {
    "h": 270,
    "s": 63.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.6781,
    "c": 0.15353,
    "h": 305.8
  },
  "luminance": 0.2902
}

Semantic roles & 50–950 ramp

primary
#AF7CE2
secondary
#DDECCE
accent
#CC1A73
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF7CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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