#9843DC#9843DC

#9843DC is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.9% C 0.223 H 305.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9843DC
RGBrgb(152, 67, 220)
HSLhsl(273, 69%, 56%)
HSVhsv(273, 70%, 86%)
CMYKcmyk(30.9%, 69.5%, 0%, 13.7%)
CIE-LABlab(46.79, 61.55, -63.77)
CIE-LCHlch(46.79, 88.63, 313.98°)
OKLaboklab(56.85% 0.1307 -0.1811)
OKLCHoklch(56.85% 0.223 305.8)
XYZxyz(27.8715, 15.8572, 69.2887)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9843DC #87DC43
analogous
#4C43DC #9843DC #DC43D4
triadic
#9843DC #DC9843 #43DC98
tetradic
#9843DC #DC4C43 #87DC43 #43D4DC
square
#9843DC #DC4C43 #87DC43 #43D4DC
split-complementary
#9843DC #D4DC43 #43DC4C
monochromatic
#591A8B #7A23BE #9843DC #B477E6 #D1AAEF

Accessibility & contrast

On white

5.03
#9843DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9843DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9843DC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9843DC#FFFFFF#000000##FFFFFF
##9843DC1.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)
#006CE0
Deuteranopia (green-blind)
#026FD9
Tritanopia (blue-blind)
#8C668B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9843dc;
/* rgb */ color: rgb(152, 67, 220);
/* oklch */ color: oklch(56.9% 0.223 305.8);
Tailwind
colors: {
  custom: {
    50: '#bb7ee8',
    500: '#9843dc',
    950: '#000000',
  },
}
SCSS
$custom: #9843dc;
$custom-light: #bb7ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#9843dc",
  "rgb": {
    "r": 152,
    "g": 67,
    "b": 220
  },
  "hsl": {
    "h": 273.333,
    "s": 68.61,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56852,
    "c": 0.22333,
    "h": 305.8
  },
  "luminance": 0.15857
}

Semantic roles & 50–950 ramp

primary
#9843DC
secondary
#BADD9E
accent
#EB3C8A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9843DC

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

Preview Lab → · Contrast checker → · Palette generator →

#9843DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva