#9847CA#9847CA

#9847CA is a mid, vivid violet. Relative luminance 0.154; OKLCH L 56.1% C 0.200 H 309.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9847CA
RGBrgb(152, 71, 202)
HSLhsl(277, 55%, 54%)
HSVhsv(277, 65%, 79%)
CMYKcmyk(24.8%, 64.9%, 0%, 20.8%)
CIE-LABlab(46.24, 55.72, -54.33)
CIE-LCHlch(46.24, 77.82, 315.72°)
OKLaboklab(56.08% 0.1282 -0.1534)
OKLCHoklch(56.08% 0.2 309.9)
XYZxyz(25.8607, 15.4467, 57.4848)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847CA #79CA47
analogous
#5647CA #9847CA #CA47BA
triadic
#9847CA #CA9847 #47CA98
tetradic
#9847CA #CA5647 #79CA47 #47BACA
square
#9847CA #CA5647 #79CA47 #47BACA
split-complementary
#9847CA #BACA47 #47CA56
monochromatic
#552275 #782FA4 #9847CA #B377D8 #CDA6E5

Accessibility & contrast

On white

5.14
#9847CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9847CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847CA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847CA#FFFFFF#000000##FFFFFF
##9847CA1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#346FC7
Tritanopia (blue-blind)
#916282
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9847ca;
/* rgb */ color: rgb(152, 71, 202);
/* oklch */ color: oklch(56.1% 0.200 309.9);
Tailwind
colors: {
  custom: {
    50: '#ba7fdb',
    500: '#9847ca',
    950: '#000000',
  },
}
SCSS
$custom: #9847ca;
$custom-light: #ba7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9847ca",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 277.099,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56079,
    "c": 0.19994,
    "h": 309.9
  },
  "luminance": 0.15446
}

Semantic roles & 50–950 ramp

primary
#9847CA
secondary
#B0D29A
accent
#DF4982
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9847CA

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

Preview Lab → · Contrast checker → · Palette generator →

#9847CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva