#9843CC#9843CC

#9843CC is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.7% C 0.207 H 309.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9843CC
RGBrgb(152, 67, 204)
HSLhsl(277, 57%, 53%)
HSVhsv(277, 67%, 80%)
CMYKcmyk(25.5%, 67.2%, 0%, 20%)
CIE-LABlab(45.70, 58.00, -56.35)
CIE-LCHlch(45.70, 80.87, 315.83°)
OKLaboklab(55.73% 0.1326 -0.1593)
OKLCHoklch(55.73% 0.207 309.8)
XYZxyz(25.8530, 15.0499, 58.6580)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9843CC #77CC43
analogous
#5343CC #9843CC #CC43BC
triadic
#9843CC #CC9843 #43CC98
tetradic
#9843CC #CC5343 #77CC43 #43BCCC
square
#9843CC #CC5343 #77CC43 #43BCCC
split-complementary
#9843CC #BCCC43 #43CC53
monochromatic
#552075 #772DA5 #9843CC #B273D9 #CDA3E6

Accessibility & contrast

On white

5.24
#9843CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9843CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9843CC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9843CC#FFFFFF#000000##FFFFFF
##9843CC1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#2D6DC9
Tritanopia (blue-blind)
#916082
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9843cc;
/* rgb */ color: rgb(152, 67, 204);
/* oklch */ color: oklch(55.7% 0.207 309.8);
Tailwind
colors: {
  custom: {
    50: '#ba7ddc',
    500: '#9843cc',
    950: '#000000',
  },
}
SCSS
$custom: #9843cc;
$custom-light: #ba7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9843cc",
  "rgb": {
    "r": 152,
    "g": 67,
    "b": 204
  },
  "hsl": {
    "h": 277.226,
    "s": 57.322,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55734,
    "c": 0.20723,
    "h": 309.8
  },
  "luminance": 0.15049
}

Semantic roles & 50–950 ramp

primary
#9843CC
secondary
#AED398
accent
#E14781
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9843CC

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

Preview Lab → · Contrast checker → · Palette generator →

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