#9843D9#9843D9

#9843D9 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.6% C 0.220 H 306.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9843D9
RGBrgb(152, 67, 217)
HSLhsl(274, 66%, 56%)
HSVhsv(274, 69%, 85%)
CMYKcmyk(30%, 69.1%, 0%, 14.9%)
CIE-LABlab(46.58, 60.88, -62.40)
CIE-LCHlch(46.58, 87.18, 314.29°)
OKLaboklab(56.64% 0.1311 -0.1771)
OKLCHoklch(56.64% 0.22 306.5)
XYZxyz(27.4777, 15.6997, 67.2150)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9843D9 #84D943
analogous
#4D43D9 #9843D9 #D943CF
triadic
#9843D9 #D99843 #43D998
tetradic
#9843D9 #D94D43 #84D943 #43CFD9
square
#9843D9 #D94D43 #84D943 #43CFD9
split-complementary
#9843D9 #CFD943 #43D94D
monochromatic
#581B86 #7925B9 #9843D9 #B476E3 #D0A9EE

Accessibility & contrast

On white

5.07
#9843D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9843D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9843D9
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9843D9#FFFFFF#000000##FFFFFF
##9843D91.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#116FD6
Tritanopia (blue-blind)
#8D6589
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9843d9;
/* rgb */ color: rgb(152, 67, 217);
/* oklch */ color: oklch(56.6% 0.220 306.5);
Tailwind
colors: {
  custom: {
    50: '#bb7ee6',
    500: '#9843d9',
    950: '#000000',
  },
}
SCSS
$custom: #9843d9;
$custom-light: #bb7ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#9843d9",
  "rgb": {
    "r": 152,
    "g": 67,
    "b": 217
  },
  "hsl": {
    "h": 274,
    "s": 66.372,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56638,
    "c": 0.22031,
    "h": 306.5
  },
  "luminance": 0.15699
}

Semantic roles & 50–950 ramp

primary
#9843D9
secondary
#B8DB9D
accent
#E93F89
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9843D9

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

Preview Lab → · Contrast checker → · Palette generator →

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