#AF42FF#AF42FF

#AF42FF is a light, highly saturated violet. Relative luminance 0.202; OKLCH L 62.0% C 0.263 H 306.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AF42FF
RGBrgb(175, 66, 255)
HSLhsl(275, 100%, 63%)
HSVhsv(275, 74%, 100%)
CMYKcmyk(31.4%, 74.1%, 0%, 0%)
CIE-LABlab(52.10, 73.76, -74.71)
CIE-LCHlch(52.10, 104.99, 314.63°)
OKLaboklab(62.03% 0.1557 -0.2125)
OKLCHoklch(62.03% 0.263 306.2)
XYZxyz(37.6734, 20.2308, 96.5086)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42FF #92FF42
analogous
#5042FF #AF42FF #FF42F1
triadic
#AF42FF #FFAF42 #42FFAF
tetradic
#AF42FF #FF5042 #92FF42 #42F1FF
square
#AF42FF #FF5042 #92FF42 #42F1FF
split-complementary
#AF42FF #F1FF42 #42FF50
monochromatic
#7300C7 #9505FF #AF42FF #C97FFF #E3BCFF

Accessibility & contrast

On white

4.16
#AF42FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AF42FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF42FF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42FF#FFFFFF#000000##000000
##AF42FF1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079FF
Deuteranopia (green-blind)
#007DFB
Tritanopia (blue-blind)
#A1719E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af42ff;
/* rgb */ color: rgb(175, 66, 255);
/* oklch */ color: oklch(62.0% 0.263 306.2);
Tailwind
colors: {
  custom: {
    50: '#cd81ff',
    500: '#af42ff',
    950: '#000000',
  },
}
SCSS
$custom: #af42ff;
$custom-light: #cd81ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af42ff",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 255
  },
  "hsl": {
    "h": 274.603,
    "s": 100,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62025,
    "c": 0.26341,
    "h": 306.2
  },
  "luminance": 0.2023
}

Semantic roles & 50–950 ramp

primary
#AF42FF
secondary
#C9F0AC
accent
#E60061
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B18
muted
#837C86

Preview Lab

Preview with #AF42FF

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

Preview Lab → · Contrast checker → · Palette generator →

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