#9846D5#9846D5

#9846D5 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.7% C 0.213 H 307.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9846D5
RGBrgb(152, 70, 213)
HSLhsl(274, 63%, 55%)
HSVhsv(274, 67%, 84%)
CMYKcmyk(28.6%, 67.1%, 0%, 16.5%)
CIE-LABlab(46.79, 58.63, -59.77)
CIE-LCHlch(46.79, 83.73, 314.45°)
OKLaboklab(56.7% 0.1284 -0.1694)
OKLCHoklch(56.7% 0.213 307.2)
XYZxyz(27.1468, 15.8601, 64.5691)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846D5 #83D546
analogous
#5046D5 #9846D5 #D546CA
triadic
#9846D5 #D59846 #46D598
tetradic
#9846D5 #D55046 #83D546 #46CAD5
square
#9846D5 #D55046 #83D546 #46CAD5
split-complementary
#9846D5 #CAD546 #46D550
monochromatic
#581E83 #7929B5 #9846D5 #B478E0 #D0AAEC

Accessibility & contrast

On white

5.03
#9846D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9846D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846D5
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846D5#FFFFFF#000000##FFFFFF
##9846D51.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#2270D2
Tritanopia (blue-blind)
#8E6588
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9846d5;
/* rgb */ color: rgb(152, 70, 213);
/* oklch */ color: oklch(56.7% 0.213 307.2);
Tailwind
colors: {
  custom: {
    50: '#bb7fe3',
    500: '#9846d5',
    950: '#000000',
  },
}
SCSS
$custom: #9846d5;
$custom-light: #bb7fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#9846d5",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 213
  },
  "hsl": {
    "h": 274.406,
    "s": 62.996,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56704,
    "c": 0.21254,
    "h": 307.2
  },
  "luminance": 0.1586
}

Semantic roles & 50–950 ramp

primary
#9846D5
secondary
#B7D99E
accent
#E64288
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9846D5

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

Preview Lab → · Contrast checker → · Palette generator →

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