#9843DB#9843DB

#9843DB is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.8% C 0.222 H 306.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9843DB
RGBrgb(152, 67, 219)
HSLhsl(274, 68%, 56%)
HSVhsv(274, 69%, 86%)
CMYKcmyk(30.6%, 69.4%, 0%, 14.1%)
CIE-LABlab(46.72, 61.33, -63.32)
CIE-LCHlch(46.72, 88.15, 314.08°)
OKLaboklab(56.78% 0.1308 -0.1798)
OKLCHoklch(56.78% 0.222 306)
XYZxyz(27.7394, 15.8044, 68.5933)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9843DB #86DB43
analogous
#4C43DB #9843DB #DB43D2
triadic
#9843DB #DB9843 #43DB98
tetradic
#9843DB #DB4C43 #86DB43 #43D2DB
square
#9843DB #DB4C43 #86DB43 #43D2DB
split-complementary
#9843DB #D2DB43 #43DB4C
monochromatic
#581A89 #7924BD #9843DB #B476E5 #D0AAEF

Accessibility & contrast

On white

5.05
#9843DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9843DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9843DB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9843DB#FFFFFF#000000##FFFFFF
##9843DB1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#076FD8
Tritanopia (blue-blind)
#8C668A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9843db;
/* rgb */ color: rgb(152, 67, 219);
/* oklch */ color: oklch(56.8% 0.222 306.0);
Tailwind
colors: {
  custom: {
    50: '#bb7ee7',
    500: '#9843db',
    950: '#000000',
  },
}
SCSS
$custom: #9843db;
$custom-light: #bb7ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#9843db",
  "rgb": {
    "r": 152,
    "g": 67,
    "b": 219
  },
  "hsl": {
    "h": 273.553,
    "s": 67.857,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56781,
    "c": 0.22233,
    "h": 306
  },
  "luminance": 0.15804
}

Semantic roles & 50–950 ramp

primary
#9843DB
secondary
#B9DC9E
accent
#EB3D8A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9843DB

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

Preview Lab → · Contrast checker → · Palette generator →

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