#9843CA#9843CA

#9843CA is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.6% C 0.205 H 310.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9843CA
RGBrgb(152, 67, 202)
HSLhsl(278, 56%, 53%)
HSVhsv(278, 67%, 79%)
CMYKcmyk(24.8%, 66.8%, 0%, 20.8%)
CIE-LABlab(45.57, 57.57, -55.41)
CIE-LCHlch(45.57, 79.90, 316.09°)
OKLaboklab(55.6% 0.1327 -0.1565)
OKLCHoklch(55.6% 0.205 310.3)
XYZxyz(25.6147, 14.9545, 57.4028)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9843CA #75CA43
analogous
#5443CA #9843CA #CA43B8
triadic
#9843CA #CA9843 #43CA98
tetradic
#9843CA #CA5443 #75CA43 #43B8CA
square
#9843CA #CA5443 #75CA43 #43B8CA
split-complementary
#9843CA #B8CA43 #43CA54
monochromatic
#542072 #772EA2 #9843CA #B273D7 #CCA2E5

Accessibility & contrast

On white

5.26
#9843CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9843CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9843CA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9843CA#FFFFFF#000000##FFFFFF
##9843CA1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#306DC7
Tritanopia (blue-blind)
#915F81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9843ca;
/* rgb */ color: rgb(152, 67, 202);
/* oklch */ color: oklch(55.6% 0.205 310.3);
Tailwind
colors: {
  custom: {
    50: '#ba7ddb',
    500: '#9843ca',
    950: '#000000',
  },
}
SCSS
$custom: #9843ca;
$custom-light: #ba7ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#9843ca",
  "rgb": {
    "r": 152,
    "g": 67,
    "b": 202
  },
  "hsl": {
    "h": 277.778,
    "s": 56.017,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55599,
    "c": 0.20522,
    "h": 310.3
  },
  "luminance": 0.14954
}

Semantic roles & 50–950 ramp

primary
#9843CA
secondary
#ADD297
accent
#DF4880
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9843CA

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

Preview Lab → · Contrast checker → · Palette generator →

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