#AF4EF2#AF4EF2

#AF4EF2 is a light, highly saturated violet. Relative luminance 0.210; OKLCH L 62.3% C 0.238 H 308.0°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF4EF2
RGBrgb(175, 78, 242)
HSLhsl(275, 86%, 63%)
HSVhsv(275, 68%, 95%)
CMYKcmyk(27.7%, 67.8%, 0%, 5.1%)
CIE-LABlab(52.92, 66.12, -66.13)
CIE-LCHlch(52.92, 93.51, 314.99°)
OKLaboklab(62.33% 0.1465 -0.1873)
OKLCHoklch(62.33% 0.238 308)
XYZxyz(36.4273, 20.9741, 86.1166)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EF2 #91F24E
analogous
#5D4EF2 #AF4EF2 #F24EE3
triadic
#AF4EF2 #F2AF4E #4EF2AF
tetradic
#AF4EF2 #F25D4E #91F24E #4EE3F2
square
#AF4EF2 #F25D4E #91F24E #4EE3F2
split-complementary
#AF4EF2 #E3F24E #4EF25D
monochromatic
#720EB8 #9515EE #AF4EF2 #C987F6 #E3C0FA

Accessibility & contrast

On white

4.04
#AF4EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#AF4EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EF2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EF2#FFFFFF#000000##000000
##AF4EF21.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#277FEE
Tritanopia (blue-blind)
#A4729A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af4ef2;
/* rgb */ color: rgb(175, 78, 242);
/* oklch */ color: oklch(62.3% 0.238 308.0);
Tailwind
colors: {
  custom: {
    50: '#cc86f7',
    500: '#af4ef2',
    950: '#000000',
  },
}
SCSS
$custom: #af4ef2;
$custom-light: #cc86f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ef2",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 242
  },
  "hsl": {
    "h": 275.488,
    "s": 86.316,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62327,
    "c": 0.23781,
    "h": 308
  },
  "luminance": 0.20974
}

Semantic roles & 50–950 ramp

primary
#AF4EF2
secondary
#C8ECB0
accent
#E3035E
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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