#AF42EA#AF42EA

#AF42EA is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.5% C 0.244 H 310.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AF42EA
RGBrgb(175, 66, 234)
HSLhsl(279, 80%, 59%)
HSVhsv(279, 72%, 92%)
CMYKcmyk(25.2%, 71.8%, 0%, 8.2%)
CIE-LABlab(50.63, 69.38, -65.34)
CIE-LCHlch(50.63, 95.31, 316.72°)
OKLaboklab(60.53% 0.1593 -0.1849)
OKLCHoklch(60.53% 0.244 310.7)
XYZxyz(34.4758, 18.9517, 79.6679)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42EA #7DEA42
analogous
#5B42EA #AF42EA #EA42D1
triadic
#AF42EA #EAAF42 #42EAAF
tetradic
#AF42EA #EA5B42 #7DEA42 #42D1EA
square
#AF42EA #EA5B42 #7DEA42 #42D1EA
split-complementary
#AF42EA #D1EA42 #42EA5B
monochromatic
#6E12A0 #9418D7 #AF42EA #C679F0 #DEB0F6

Accessibility & contrast

On white

4.38
#AF42EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#AF42EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42EA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42EA#FFFFFF#000000##000000
##AF42EA1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#237AE6
Tritanopia (blue-blind)
#A76893
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af42ea;
/* rgb */ color: rgb(175, 66, 234);
/* oklch */ color: oklch(60.5% 0.244 310.7);
Tailwind
colors: {
  custom: {
    50: '#cc80f2',
    500: '#af42ea',
    950: '#000000',
  },
}
SCSS
$custom: #af42ea;
$custom-light: #cc80f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af42ea",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 278.929,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60527,
    "c": 0.2441,
    "h": 310.7
  },
  "luminance": 0.18951
}

Semantic roles & 50–950 ramp

primary
#AF42EA
secondary
#BAE5A3
accent
#F63177
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF42EA

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

Preview Lab → · Contrast checker → · Palette generator →

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