#AF47E8#AF47E8

#AF47E8 is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.9% C 0.237 H 310.8°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AF47E8
RGBrgb(175, 71, 232)
HSLhsl(279, 78%, 59%)
HSVhsv(279, 69%, 91%)
CMYKcmyk(24.6%, 69.4%, 0%, 9%)
CIE-LABlab(51.21, 66.97, -63.28)
CIE-LCHlch(51.21, 92.14, 316.62°)
OKLaboklab(60.9% 0.1547 -0.1789)
OKLCHoklch(60.9% 0.237 310.8)
XYZxyz(34.4951, 19.4474, 78.2649)
Luminance0.1945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47E8 #80E847
analogous
#5F47E8 #AF47E8 #E847D0
triadic
#AF47E8 #E8AF47 #47E8AF
tetradic
#AF47E8 #E85F47 #80E847 #47D0E8
square
#AF47E8 #E85F47 #80E847 #47D0E8
split-complementary
#AF47E8 #D0E847 #47E85F
monochromatic
#6F14A1 #941BD7 #AF47E8 #C77DEF #DEB4F6

Accessibility & contrast

On white

4.30
#AF47E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#AF47E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47E8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47E8#FFFFFF#000000##000000
##AF47E81.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075ED
Deuteranopia (green-blind)
#2E7CE4
Tritanopia (blue-blind)
#A86A93
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af47e8;
/* rgb */ color: rgb(175, 71, 232);
/* oklch */ color: oklch(60.9% 0.237 310.8);
Tailwind
colors: {
  custom: {
    50: '#cb82f0',
    500: '#af47e8',
    950: '#000000',
  },
}
SCSS
$custom: #af47e8;
$custom-light: #cb82f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af47e8",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 232
  },
  "hsl": {
    "h": 278.758,
    "s": 77.778,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60895,
    "c": 0.23655,
    "h": 310.8
  },
  "luminance": 0.19447
}

Semantic roles & 50–950 ramp

primary
#AF47E8
secondary
#BCE5A6
accent
#F43478
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF47E8

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

Preview Lab → · Contrast checker → · Palette generator →

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