#AF48ED#AF48ED

#AF48ED is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.3% C 0.240 H 309.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF48ED
RGBrgb(175, 72, 237)
HSLhsl(277, 82%, 61%)
HSVhsv(277, 70%, 93%)
CMYKcmyk(26.2%, 69.6%, 0%, 7.1%)
CIE-LABlab(51.68, 67.60, -65.33)
CIE-LCHlch(51.68, 94.01, 315.98°)
OKLaboklab(61.34% 0.1531 -0.1849)
OKLCHoklch(61.34% 0.24 309.6)
XYZxyz(35.2796, 19.8638, 82.0799)
Luminance0.1986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48ED #86ED48
analogous
#5C48ED #AF48ED #ED48D8
triadic
#AF48ED #EDAF48 #48EDAF
tetradic
#AF48ED #ED5C48 #86ED48 #48D8ED
square
#AF48ED #ED5C48 #86ED48 #48D8ED
split-complementary
#AF48ED #D8ED48 #48ED5C
monochromatic
#7011AA #9516E2 #AF48ED #C780F2 #E0B7F8

Accessibility & contrast

On white

4.22
#AF48ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AF48ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF48ED
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48ED#FFFFFF#000000##000000
##AF48ED1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F2
Deuteranopia (green-blind)
#277DE9
Tritanopia (blue-blind)
#A66D96
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af48ed;
/* rgb */ color: rgb(175, 72, 237);
/* oklch */ color: oklch(61.3% 0.240 309.6);
Tailwind
colors: {
  custom: {
    50: '#cc83f4',
    500: '#af48ed',
    950: '#000000',
  },
}
SCSS
$custom: #af48ed;
$custom-light: #cc83f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af48ed",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 237
  },
  "hsl": {
    "h": 277.455,
    "s": 82.09,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61339,
    "c": 0.24012,
    "h": 309.6
  },
  "luminance": 0.19863
}

Semantic roles & 50–950 ramp

primary
#AF48ED
secondary
#C1E8A9
accent
#DE0758
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF48ED

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

Preview Lab → · Contrast checker → · Palette generator →

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