#AF4EE2#AF4EE2

#AF4EE2 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.3% C 0.222 H 311.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AF4EE2
RGBrgb(175, 78, 226)
HSLhsl(279, 72%, 60%)
HSVhsv(279, 65%, 89%)
CMYKcmyk(22.6%, 65.5%, 0%, 11.4%)
CIE-LABlab(51.90, 62.72, -58.78)
CIE-LCHlch(51.90, 85.96, 316.85°)
OKLaboklab(61.27% 0.1479 -0.1658)
OKLCHoklch(61.27% 0.222 311.7)
XYZxyz(34.1285, 20.0546, 74.0099)
Luminance0.2005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EE2 #81E24E
analogous
#654EE2 #AF4EE2 #E24ECB
triadic
#AF4EE2 #E2AF4E #4EE2AF
tetradic
#AF4EE2 #E2654E #81E24E #4ECBE2
square
#AF4EE2 #E2654E #81E24E #4ECBE2
split-complementary
#AF4EE2 #CBE24E #4EE265
monochromatic
#6F1A9C #9522D1 #AF4EE2 #C783EB #DFB7F3

Accessibility & contrast

On white

4.19
#AF4EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AF4EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EE2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EE2#FFFFFF#000000##000000
##AF4EE21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#3F7EDF
Tritanopia (blue-blind)
#A96C92
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4ee2;
/* rgb */ color: rgb(175, 78, 226);
/* oklch */ color: oklch(61.3% 0.222 311.7);
Tailwind
colors: {
  custom: {
    50: '#cb86ec',
    500: '#af4ee2',
    950: '#000000',
  },
}
SCSS
$custom: #af4ee2;
$custom-light: #cb86ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ee2",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 226
  },
  "hsl": {
    "h": 279.324,
    "s": 71.845,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61269,
    "c": 0.22216,
    "h": 311.7
  },
  "luminance": 0.20054
}

Semantic roles & 50–950 ramp

primary
#AF4EE2
secondary
#BDE3A9
accent
#EF3978
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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