#9834CC#9834CC

#9834CC is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.2% C 0.225 H 311.0°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9834CC
RGBrgb(152, 52, 204)
HSLhsl(279, 60%, 50%)
HSVhsv(279, 75%, 80%)
CMYKcmyk(25.5%, 74.5%, 0%, 20%)
CIE-LABlab(43.49, 64.23, -59.92)
CIE-LCHlch(43.49, 87.84, 316.99°)
OKLaboklab(54.16% 0.1475 -0.1697)
OKLCHoklch(54.16% 0.225 311)
XYZxyz(25.0739, 13.4916, 58.3983)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9834CC #68CC34
analogous
#4C34CC #9834CC #CC34B4
triadic
#9834CC #CC9834 #34CC98
tetradic
#9834CC #CC4C34 #68CC34 #34B4CC
square
#9834CC #CC4C34 #68CC34 #34B4CC
split-complementary
#9834CC #B4CC34 #34CC4C
monochromatic
#4F1B6B #74279C #9834CC #B165D8 #CA96E5

Accessibility & contrast

On white

5.68
#9834CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#9834CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9834CC
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9834CC#FFFFFF#000000##FFFFFF
##9834CC1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#1468C9
Tritanopia (blue-blind)
#91587E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9834cc;
/* rgb */ color: rgb(152, 52, 204);
/* oklch */ color: oklch(54.2% 0.225 311.0);
Tailwind
colors: {
  custom: {
    50: '#bb76dc',
    500: '#9834cc',
    950: '#000000',
  },
}
SCSS
$custom: #9834cc;
$custom-light: #bb76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9834cc",
  "rgb": {
    "r": 152,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 279.474,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54163,
    "c": 0.22486,
    "h": 311
  },
  "luminance": 0.13491
}

Semantic roles & 50–950 ramp

primary
#9834CC
secondary
#A3D08C
accent
#E3457B
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9834CC

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

Preview Lab → · Contrast checker → · Palette generator →

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