#9846D7#9846D7

#9846D7 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.8% C 0.215 H 306.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9846D7
RGBrgb(152, 70, 215)
HSLhsl(274, 64%, 56%)
HSVhsv(274, 67%, 84%)
CMYKcmyk(29.3%, 67.4%, 0%, 15.7%)
CIE-LABlab(46.92, 59.08, -60.70)
CIE-LCHlch(46.92, 84.70, 314.23°)
OKLaboklab(56.84% 0.1282 -0.1721)
OKLCHoklch(56.84% 0.215 306.7)
XYZxyz(27.4022, 15.9623, 65.9143)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846D7 #85D746
analogous
#4F46D7 #9846D7 #D746CD
triadic
#9846D7 #D79846 #46D798
tetradic
#9846D7 #D74F46 #85D746 #46CDD7
square
#9846D7 #D74F46 #85D746 #46CDD7
split-complementary
#9846D7 #CDD746 #46D74F
monochromatic
#581D86 #7928B8 #9846D7 #B478E2 #D0ABED

Accessibility & contrast

On white

5.01
#9846D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9846D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846D7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846D7#FFFFFF#000000##FFFFFF
##9846D71.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#1E70D4
Tritanopia (blue-blind)
#8D6689
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9846d7;
/* rgb */ color: rgb(152, 70, 215);
/* oklch */ color: oklch(56.8% 0.215 306.7);
Tailwind
colors: {
  custom: {
    50: '#bb7fe4',
    500: '#9846d7',
    950: '#000000',
  },
}
SCSS
$custom: #9846d7;
$custom-light: #bb7fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#9846d7",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 215
  },
  "hsl": {
    "h": 273.931,
    "s": 64.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56843,
    "c": 0.21459,
    "h": 306.7
  },
  "luminance": 0.15962
}

Semantic roles & 50–950 ramp

primary
#9846D7
secondary
#B8DA9E
accent
#E74089
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9846D7

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

Preview Lab → · Contrast checker → · Palette generator →

#9846D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva