#9846C5#9846C5

#9846C5 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.6% C 0.196 H 311.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9846C5
RGBrgb(152, 70, 197)
HSLhsl(279, 52%, 52%)
HSVhsv(279, 64%, 77%)
CMYKcmyk(22.8%, 64.5%, 0%, 22.7%)
CIE-LABlab(45.75, 55.10, -52.22)
CIE-LCHlch(45.75, 75.91, 316.53°)
OKLaboklab(55.63% 0.1297 -0.1472)
OKLCHoklch(55.63% 0.196 311.4)
XYZxyz(25.2152, 15.0875, 54.3964)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9846C5 #73C546
analogous
#5946C5 #9846C5 #C546B3
triadic
#9846C5 #C59846 #46C598
tetradic
#9846C5 #C55946 #73C546 #46B3C5
square
#9846C5 #C55946 #73C546 #46B3C5
split-complementary
#9846C5 #B3C546 #46C559
monochromatic
#53236E #77319D #9846C5 #B275D4 #CCA3E2

Accessibility & contrast

On white

5.23
#9846C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9846C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9846C5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9846C5#FFFFFF#000000##FFFFFF
##9846C51.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#396EC2
Tritanopia (blue-blind)
#935F7F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9846c5;
/* rgb */ color: rgb(152, 70, 197);
/* oklch */ color: oklch(55.6% 0.196 311.4);
Tailwind
colors: {
  custom: {
    50: '#ba7fd7',
    500: '#9846c5',
    950: '#000000',
  },
}
SCSS
$custom: #9846c5;
$custom-light: #ba7fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9846c5",
  "rgb": {
    "r": 152,
    "g": 70,
    "b": 197
  },
  "hsl": {
    "h": 278.74,
    "s": 52.263,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55628,
    "c": 0.19616,
    "h": 311.4
  },
  "luminance": 0.15087
}

Semantic roles & 50–950 ramp

primary
#9846C5
secondary
#ABCF98
accent
#DC4C7F
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9846C5

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

Preview Lab → · Contrast checker → · Palette generator →

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