#AF47E4#AF47E4

#AF47E4 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.6% C 0.233 H 311.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF47E4
RGBrgb(175, 71, 228)
HSLhsl(280, 74%, 59%)
HSVhsv(280, 69%, 89%)
CMYKcmyk(23.2%, 68.9%, 0%, 10.6%)
CIE-LABlab(50.95, 66.14, -61.44)
CIE-LCHlch(50.95, 90.28, 317.11°)
OKLaboklab(60.63% 0.1552 -0.1735)
OKLCHoklch(60.63% 0.233 311.8)
XYZxyz(33.9334, 19.2228, 75.3066)
Luminance0.1922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47E4 #7CE447
analogous
#6047E4 #AF47E4 #E447CB
triadic
#AF47E4 #E4AF47 #47E4AF
tetradic
#AF47E4 #E46047 #7CE447 #47CBE4
square
#AF47E4 #E46047 #7CE447 #47CBE4
split-complementary
#AF47E4 #CBE447 #47E460
monochromatic
#6E179A #941ECF #AF47E4 #C67CEC #DDB2F4

Accessibility & contrast

On white

4.33
#AF47E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#AF47E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47E4
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47E4#FFFFFF#000000##000000
##AF47E41.004.334.844.84
#FFFFFF4.331.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E9
Deuteranopia (green-blind)
#347BE1
Tritanopia (blue-blind)
#A96891
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af47e4;
/* rgb */ color: rgb(175, 71, 228);
/* oklch */ color: oklch(60.6% 0.233 311.8);
Tailwind
colors: {
  custom: {
    50: '#cb82ed',
    500: '#af47e4',
    950: '#000000',
  },
}
SCSS
$custom: #af47e4;
$custom-light: #cb82ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af47e4",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 228
  },
  "hsl": {
    "h": 279.745,
    "s": 74.408,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60627,
    "c": 0.23279,
    "h": 311.8
  },
  "luminance": 0.19222
}

Semantic roles & 50–950 ramp

primary
#AF47E4
secondary
#B9E2A4
accent
#F13776
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF47E4

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

Preview Lab → · Contrast checker → · Palette generator →

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