#9A47CB#9A47CB

#9A47CB is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.4% C 0.202 H 310.4°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9A47CB
RGBrgb(154, 71, 203)
HSLhsl(278, 56%, 54%)
HSVhsv(278, 65%, 80%)
CMYKcmyk(24.1%, 65%, 0%, 20.4%)
CIE-LABlab(46.56, 56.38, -54.38)
CIE-LCHlch(46.56, 78.33, 316.04°)
OKLaboklab(56.39% 0.1307 -0.1535)
OKLCHoklch(56.39% 0.202 310.4)
XYZxyz(26.3571, 15.6889, 58.1281)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A47CB #78CB47
analogous
#5847CB #9A47CB #CB47BA
triadic
#9A47CB #CB9A47 #47CB9A
tetradic
#9A47CB #CB5847 #78CB47 #47BACB
square
#9A47CB #CB5847 #78CB47 #47BACB
split-complementary
#9A47CB #BACB47 #47CB58
monochromatic
#572176 #7A2FA6 #9A47CB #B477D8 #CEA6E6

Accessibility & contrast

On white

5.08
#9A47CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9A47CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A47CB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A47CB#FFFFFF#000000##FFFFFF
##9A47CB1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#3670C8
Tritanopia (blue-blind)
#946283
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9a47cb;
/* rgb */ color: rgb(154, 71, 203);
/* oklch */ color: oklch(56.4% 0.202 310.4);
Tailwind
colors: {
  custom: {
    50: '#bc80db',
    500: '#9a47cb',
    950: '#000000',
  },
}
SCSS
$custom: #9a47cb;
$custom-light: #bc80db;
$custom-dark: #000000;
JSON
{
  "hex": "#9a47cb",
  "rgb": {
    "r": 154,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 277.727,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56388,
    "c": 0.20159,
    "h": 310.4
  },
  "luminance": 0.15688
}

Semantic roles & 50–950 ramp

primary
#9A47CB
secondary
#B0D39B
accent
#DF4980
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A47CB

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

Preview Lab → · Contrast checker → · Palette generator →

#9A47CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva