#9843D2#9843D2

#9843D2 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.1% C 0.213 H 308.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9843D2
RGBrgb(152, 67, 210)
HSLhsl(276, 61%, 54%)
HSVhsv(276, 68%, 82%)
CMYKcmyk(27.6%, 68.1%, 0%, 17.6%)
CIE-LABlab(46.10, 59.32, -59.16)
CIE-LCHlch(46.10, 83.78, 315.08°)
OKLaboklab(56.15% 0.1319 -0.1676)
OKLCHoklch(56.15% 0.213 308.2)
XYZxyz(26.5865, 15.3433, 62.5212)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9843D2 #7DD243
analogous
#5143D2 #9843D2 #D243C5
triadic
#9843D2 #D29843 #43D298
tetradic
#9843D2 #D25143 #7DD243 #43C5D2
square
#9843D2 #D25143 #7DD243 #43C5D2
split-complementary
#9843D2 #C5D243 #43D251
monochromatic
#561E7D #782AAE #9843D2 #B374DE #CEA6EA

Accessibility & contrast

On white

5.16
#9843D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9843D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9843D2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9843D2#FFFFFF#000000##FFFFFF
##9843D21.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#236ECF
Tritanopia (blue-blind)
#8F6285
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9843d2;
/* rgb */ color: rgb(152, 67, 210);
/* oklch */ color: oklch(56.1% 0.213 308.2);
Tailwind
colors: {
  custom: {
    50: '#bb7de1',
    500: '#9843d2',
    950: '#000000',
  },
}
SCSS
$custom: #9843d2;
$custom-light: #bb7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9843d2",
  "rgb": {
    "r": 152,
    "g": 67,
    "b": 210
  },
  "hsl": {
    "h": 275.664,
    "s": 61.373,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56146,
    "c": 0.21327,
    "h": 308.2
  },
  "luminance": 0.15343
}

Semantic roles & 50–950 ramp

primary
#9843D2
secondary
#B3D79A
accent
#E44385
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9843D2

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

Preview Lab → · Contrast checker → · Palette generator →

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