#AF4EF1#AF4EF1

#AF4EF1 is a light, highly saturated violet. Relative luminance 0.209; OKLCH L 62.3% C 0.237 H 308.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF4EF1
RGBrgb(175, 78, 241)
HSLhsl(276, 85%, 63%)
HSVhsv(276, 68%, 95%)
CMYKcmyk(27.4%, 67.6%, 0%, 5.5%)
CIE-LABlab(52.86, 65.90, -65.67)
CIE-LCHlch(52.86, 93.04, 315.10°)
OKLaboklab(62.26% 0.1466 -0.186)
OKLCHoklch(62.26% 0.237 308.2)
XYZxyz(36.2775, 20.9142, 85.3278)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EF1 #90F14E
analogous
#5E4EF1 #AF4EF1 #F14EE1
triadic
#AF4EF1 #F1AF4E #4EF1AF
tetradic
#AF4EF1 #F15E4E #90F14E #4EE1F1
square
#AF4EF1 #F15E4E #90F14E #4EE1F1
split-complementary
#AF4EF1 #E1F14E #4EF15E
monochromatic
#720EB6 #9515ED #AF4EF1 #C987F5 #E2BFFA

Accessibility & contrast

On white

4.05
#AF4EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AF4EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EF1
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EF1#FFFFFF#000000##000000
##AF4EF11.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF6
Deuteranopia (green-blind)
#297FED
Tritanopia (blue-blind)
#A5729A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af4ef1;
/* rgb */ color: rgb(175, 78, 241);
/* oklch */ color: oklch(62.3% 0.237 308.2);
Tailwind
colors: {
  custom: {
    50: '#cc86f6',
    500: '#af4ef1',
    950: '#000000',
  },
}
SCSS
$custom: #af4ef1;
$custom-light: #cc86f6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ef1",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 241
  },
  "hsl": {
    "h": 275.706,
    "s": 85.34,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62259,
    "c": 0.23683,
    "h": 308.2
  },
  "luminance": 0.20914
}

Semantic roles & 50–950 ramp

primary
#AF4EF1
secondary
#C8EBB0
accent
#E2045E
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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