#AF4CE1#AF4CE1

#AF4CE1 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 61.0% C 0.224 H 312.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF4CE1
RGBrgb(175, 76, 225)
HSLhsl(280, 71%, 59%)
HSVhsv(280, 66%, 88%)
CMYKcmyk(22.2%, 66.2%, 0%, 11.8%)
CIE-LABlab(51.52, 63.39, -58.83)
CIE-LCHlch(51.52, 86.48, 317.14°)
OKLaboklab(60.98% 0.1502 -0.1659)
OKLCHoklch(60.98% 0.224 312.2)
XYZxyz(33.8518, 19.7200, 73.2427)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CE1 #7EE14C
analogous
#654CE1 #AF4CE1 #E14CC9
triadic
#AF4CE1 #E1AF4C #4CE1AF
tetradic
#AF4CE1 #E1654C #7EE14C #4CC9E1
square
#AF4CE1 #E1654C #7EE14C #4CC9E1
split-complementary
#AF4CE1 #C9E14C #4CE165
monochromatic
#6E1A99 #9422CD #AF4CE1 #C680EA #DEB5F3

Accessibility & contrast

On white

4.25
#AF4CE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AF4CE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CE1
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CE1#FFFFFF#000000##000000
##AF4CE11.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E5
Deuteranopia (green-blind)
#3E7DDE
Tritanopia (blue-blind)
#A96A90
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4ce1;
/* rgb */ color: rgb(175, 76, 225);
/* oklch */ color: oklch(61.0% 0.224 312.2);
Tailwind
colors: {
  custom: {
    50: '#cb85eb',
    500: '#af4ce1',
    950: '#000000',
  },
}
SCSS
$custom: #af4ce1;
$custom-light: #cb85eb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ce1",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 225
  },
  "hsl": {
    "h": 279.866,
    "s": 71.292,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60976,
    "c": 0.22376,
    "h": 312.2
  },
  "luminance": 0.19719
}

Semantic roles & 50–950 ramp

primary
#AF4CE1
secondary
#BBE2A7
accent
#EE3A76
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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