#9834D2#9834D2

#9834D2 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.6% C 0.230 H 309.5°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9834D2
RGBrgb(152, 52, 210)
HSLhsl(278, 64%, 51%)
HSVhsv(278, 75%, 82%)
CMYKcmyk(27.6%, 75.2%, 0%, 17.6%)
CIE-LABlab(43.92, 65.48, -62.69)
CIE-LCHlch(43.92, 90.65, 316.25°)
OKLaboklab(54.6% 0.1465 -0.1778)
OKLCHoklch(54.6% 0.23 309.5)
XYZxyz(25.8074, 13.7850, 62.2615)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9834D2 #6ED234
analogous
#4934D2 #9834D2 #D234BD
triadic
#9834D2 #D29834 #34D298
tetradic
#9834D2 #D24934 #6ED234 #34BDD2
square
#9834D2 #D24934 #6ED234 #34BDD2
split-complementary
#9834D2 #BDD234 #34D249
monochromatic
#521972 #7524A4 #9834D2 #B166DD #CB98E8

Accessibility & contrast

On white

5.59
#9834D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#9834D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9834D2
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9834D2#FFFFFF#000000##FFFFFF
##9834D21.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#8F5A81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9834d2;
/* rgb */ color: rgb(152, 52, 210);
/* oklch */ color: oklch(54.6% 0.230 309.5);
Tailwind
colors: {
  custom: {
    50: '#bc76e1',
    500: '#9834d2',
    950: '#000000',
  },
}
SCSS
$custom: #9834d2;
$custom-light: #bc76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9834d2",
  "rgb": {
    "r": 152,
    "g": 52,
    "b": 210
  },
  "hsl": {
    "h": 277.975,
    "s": 63.71,
    "l": 51.373
  },
  "oklch": {
    "l": 0.546,
    "c": 0.23037,
    "h": 309.5
  },
  "luminance": 0.13785
}

Semantic roles & 50–950 ramp

primary
#9834D2
secondary
#A8D48E
accent
#E7417E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9834D2

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

Preview Lab → · Contrast checker → · Palette generator →

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