#9843CB#9843CB

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

Color values

HEX#9843CB
RGBrgb(152, 67, 203)
HSLhsl(278, 57%, 53%)
HSVhsv(278, 67%, 80%)
CMYKcmyk(25.1%, 67%, 0%, 20.4%)
CIE-LABlab(45.64, 57.79, -55.88)
CIE-LCHlch(45.64, 80.39, 315.96°)
OKLaboklab(55.67% 0.1326 -0.1579)
OKLCHoklch(55.67% 0.206 310)
XYZxyz(25.7334, 15.0020, 58.0284)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9843CB #76CB43
analogous
#5443CB #9843CB #CB43BA
triadic
#9843CB #CB9843 #43CB98
tetradic
#9843CB #CB5443 #76CB43 #43BACB
square
#9843CB #CB5443 #76CB43 #43BACB
split-complementary
#9843CB #BACB43 #43CB54
monochromatic
#542074 #772DA4 #9843CB #B273D8 #CDA3E6

Accessibility & contrast

On white

5.25
#9843CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9843CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9843CB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9843CB#FFFFFF#000000##FFFFFF
##9843CB1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#2E6DC8
Tritanopia (blue-blind)
#916082
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9843cb;
/* rgb */ color: rgb(152, 67, 203);
/* oklch */ color: oklch(55.7% 0.206 310.0);
Tailwind
colors: {
  custom: {
    50: '#ba7ddc',
    500: '#9843cb',
    950: '#000000',
  },
}
SCSS
$custom: #9843cb;
$custom-light: #ba7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9843cb",
  "rgb": {
    "r": 152,
    "g": 67,
    "b": 203
  },
  "hsl": {
    "h": 277.5,
    "s": 56.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55666,
    "c": 0.20623,
    "h": 310
  },
  "luminance": 0.15002
}

Semantic roles & 50–950 ramp

primary
#9843CB
secondary
#AED298
accent
#E04881
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9843CB

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

Preview Lab → · Contrast checker → · Palette generator →

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