#AF7CCE#AF7CCE

#AF7CCE is a light, vivid violet. Relative luminance 0.280; OKLCH L 66.8% C 0.129 H 311.8°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#AF7CCE
RGBrgb(175, 124, 206)
HSLhsl(277, 46%, 65%)
HSVhsv(277, 40%, 81%)
CMYKcmyk(15%, 39.8%, 0%, 19.2%)
CIE-LABlab(59.88, 34.80, -34.85)
CIE-LCHlch(59.88, 49.25, 314.96°)
OKLaboklab(66.81% 0.0863 -0.0963)
OKLCHoklch(66.81% 0.129 311.8)
XYZxyz(36.0255, 27.9861, 61.8846)
Luminance0.2798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CCE #9BCE7C
analogous
#867CCE #AF7CCE #CE7CC4
triadic
#AF7CCE #CEAF7C #7CCEAF
tetradic
#AF7CCE #CE867C #9BCE7C #7CC4CE
square
#AF7CCE #CE867C #9BCE7C #7CC4CE
split-complementary
#AF7CCE #C4CE7C #7CCE86
monochromatic
#733997 #944FBD #AF7CCE #CAA9DF #E5D5EF

Accessibility & contrast

On white

3.18
#AF7CCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#AF7CCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7CCE
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7CCE#FFFFFF#000000##000000
##AF7CCE1.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8ED1
Deuteranopia (green-blind)
#7991CC
Tritanopia (blue-blind)
#AC889B
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af7cce;
/* rgb */ color: rgb(175, 124, 206);
/* oklch */ color: oklch(66.8% 0.129 311.8);
Tailwind
colors: {
  custom: {
    50: '#c8a3dd',
    500: '#af7cce',
    950: '#000000',
  },
}
SCSS
$custom: #af7cce;
$custom-light: #c8a3dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af7cce",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 206
  },
  "hsl": {
    "h": 277.317,
    "s": 45.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.66814,
    "c": 0.12932,
    "h": 311.8
  },
  "luminance": 0.27985
}

Semantic roles & 50–950 ramp

primary
#AF7CCE
secondary
#CFE1C5
accent
#B92D62
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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