#9843D5#9843D5

#9843D5 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.4% C 0.216 H 307.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9843D5
RGBrgb(152, 67, 213)
HSLhsl(275, 63%, 55%)
HSVhsv(275, 69%, 84%)
CMYKcmyk(28.6%, 68.5%, 0%, 16.5%)
CIE-LABlab(46.30, 59.99, -60.56)
CIE-LCHlch(46.30, 85.24, 314.73°)
OKLaboklab(56.36% 0.1316 -0.1716)
OKLCHoklch(56.36% 0.216 307.5)
XYZxyz(26.9638, 15.4942, 64.5081)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9843D5 #80D543
analogous
#4F43D5 #9843D5 #D543C9
triadic
#9843D5 #D59843 #43D598
tetradic
#9843D5 #D54F43 #80D543 #43C9D5
square
#9843D5 #D54F43 #80D543 #43C9D5
split-complementary
#9843D5 #C9D543 #43D54F
monochromatic
#571D81 #7928B3 #9843D5 #B375E0 #CFA7EB

Accessibility & contrast

On white

5.12
#9843D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9843D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9843D5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9843D5#FFFFFF#000000##FFFFFF
##9843D51.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#1D6ED2
Tritanopia (blue-blind)
#8E6387
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9843d5;
/* rgb */ color: rgb(152, 67, 213);
/* oklch */ color: oklch(56.4% 0.216 307.5);
Tailwind
colors: {
  custom: {
    50: '#bb7de3',
    500: '#9843d5',
    950: '#000000',
  },
}
SCSS
$custom: #9843d5;
$custom-light: #bb7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9843d5",
  "rgb": {
    "r": 152,
    "g": 67,
    "b": 213
  },
  "hsl": {
    "h": 274.932,
    "s": 63.478,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56355,
    "c": 0.21629,
    "h": 307.5
  },
  "luminance": 0.15494
}

Semantic roles & 50–950 ramp

primary
#9843D5
secondary
#B5D99B
accent
#E74186
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9843D5

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

Preview Lab → · Contrast checker → · Palette generator →

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