#9847CB#9847CB

#9847CB is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.1% C 0.201 H 309.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9847CB
RGBrgb(152, 71, 203)
HSLhsl(277, 56%, 54%)
HSVhsv(277, 65%, 80%)
CMYKcmyk(25.1%, 65%, 0%, 20.4%)
CIE-LABlab(46.30, 55.94, -54.81)
CIE-LCHlch(46.30, 78.31, 315.58°)
OKLaboklab(56.15% 0.1282 -0.1548)
OKLCHoklch(56.15% 0.201 309.6)
XYZxyz(25.9795, 15.4942, 58.1104)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847CB #7ACB47
analogous
#5647CB #9847CB #CB47BC
triadic
#9847CB #CB9847 #47CB98
tetradic
#9847CB #CB5647 #7ACB47 #47BCCB
square
#9847CB #CB5647 #7ACB47 #47BCCB
split-complementary
#9847CB #BCCB47 #47CB56
monochromatic
#552176 #782FA6 #9847CB #B377D8 #CDA6E6

Accessibility & contrast

On white

5.12
#9847CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9847CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847CB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847CB#FFFFFF#000000##FFFFFF
##9847CB1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#336FC8
Tritanopia (blue-blind)
#916283
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9847cb;
/* rgb */ color: rgb(152, 71, 203);
/* oklch */ color: oklch(56.1% 0.201 309.6);
Tailwind
colors: {
  custom: {
    50: '#ba7fdb',
    500: '#9847cb',
    950: '#000000',
  },
}
SCSS
$custom: #9847cb;
$custom-light: #ba7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9847cb",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 276.818,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56146,
    "c": 0.20096,
    "h": 309.6
  },
  "luminance": 0.15494
}

Semantic roles & 50–950 ramp

primary
#9847CB
secondary
#B0D39B
accent
#DF4983
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9847CB

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

Preview Lab → · Contrast checker → · Palette generator →

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