#AF47ED#AF47ED

#AF47ED is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 61.2% C 0.241 H 309.7°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF47ED
RGBrgb(175, 71, 237)
HSLhsl(278, 82%, 60%)
HSVhsv(278, 70%, 93%)
CMYKcmyk(26.2%, 70%, 0%, 7.1%)
CIE-LABlab(51.54, 68.01, -65.56)
CIE-LCHlch(51.54, 94.47, 316.05°)
OKLaboklab(61.23% 0.1541 -0.1856)
OKLCHoklch(61.23% 0.241 309.7)
XYZxyz(35.2155, 19.7356, 82.0586)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47ED #85ED47
analogous
#5C47ED #AF47ED #ED47D8
triadic
#AF47ED #EDAF47 #47EDAF
tetradic
#AF47ED #ED5C47 #85ED47 #47D8ED
square
#AF47ED #ED5C47 #85ED47 #47D8ED
split-complementary
#AF47ED #D8ED47 #47ED5C
monochromatic
#7011A9 #9516E1 #AF47ED #C77FF2 #DFB6F8

Accessibility & contrast

On white

4.24
#AF47ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AF47ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47ED
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47ED#FFFFFF#000000##000000
##AF47ED1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F2
Deuteranopia (green-blind)
#257CE9
Tritanopia (blue-blind)
#A66C96
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af47ed;
/* rgb */ color: rgb(175, 71, 237);
/* oklch */ color: oklch(61.2% 0.241 309.7);
Tailwind
colors: {
  custom: {
    50: '#cc83f4',
    500: '#af47ed',
    950: '#000000',
  },
}
SCSS
$custom: #af47ed;
$custom-light: #cc83f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af47ed",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 237
  },
  "hsl": {
    "h": 277.59,
    "s": 82.178,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61235,
    "c": 0.24126,
    "h": 309.7
  },
  "luminance": 0.19735
}

Semantic roles & 50–950 ramp

primary
#AF47ED
secondary
#C0E8A8
accent
#DF0757
background
#FDF8FF
surface
#FAEFFE
border
#D3CAD6
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF47ED

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

Preview Lab → · Contrast checker → · Palette generator →

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