#9838AC#9838AC

#9838AC is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.4% C 0.191 H 320.3°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9838AC
RGBrgb(152, 56, 172)
HSLhsl(290, 51%, 45%)
HSVhsv(290, 67%, 67%)
CMYKcmyk(11.6%, 67.4%, 0%, 32.5%)
CIE-LABlab(41.97, 56.21, -43.62)
CIE-LCHlch(41.97, 71.15, 322.19°)
OKLaboklab(52.42% 0.1467 -0.1219)
OKLCHoklch(52.42% 0.191 320.3)
XYZxyz(21.8086, 12.4834, 40.2825)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838AC #4CAC38
analogous
#5E38AC #9838AC #AC3886
triadic
#9838AC #AC9838 #38AC98
tetradic
#9838AC #AC5E38 #4CAC38 #3886AC
square
#9838AC #AC5E38 #4CAC38 #3886AC
split-complementary
#9838AC #86AC38 #38AC5E
monochromatic
#461A50 #6F297E #9838AC #B558C9 #CA87D8

Accessibility & contrast

On white

6.01
#9838AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#9838AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838AC
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838AC#FFFFFF#000000##FFFFFF
##9838AC1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5CAF
Deuteranopia (green-blind)
#4366A9
Tritanopia (blue-blind)
#994C6D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9838ac;
/* rgb */ color: rgb(152, 56, 172);
/* oklch */ color: oklch(52.4% 0.191 320.3);
Tailwind
colors: {
  custom: {
    50: '#ba76c5',
    500: '#9838ac',
    950: '#000000',
  },
}
SCSS
$custom: #9838ac;
$custom-light: #ba76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9838ac",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 289.655,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52416,
    "c": 0.19074,
    "h": 320.3
  },
  "luminance": 0.12482
}

Semantic roles & 50–950 ramp

primary
#9838AC
secondary
#8AC27E
accent
#DA4D66
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9838AC

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

Preview Lab → · Contrast checker → · Palette generator →

#9838AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva