#9838B7#9838B7

#9838B7 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.1% C 0.201 H 316.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9838B7
RGBrgb(152, 56, 183)
HSLhsl(285, 53%, 47%)
HSVhsv(285, 69%, 72%)
CMYKcmyk(16.9%, 69.4%, 0%, 28.2%)
CIE-LABlab(42.65, 58.37, -49.04)
CIE-LCHlch(42.65, 76.24, 319.97°)
OKLaboklab(53.12% 0.1462 -0.1378)
OKLCHoklch(53.12% 0.201 316.7)
XYZxyz(22.9090, 12.9236, 46.0783)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838B7 #57B738
analogous
#5838B7 #9838B7 #B73897
triadic
#9838B7 #B79838 #38B798
tetradic
#9838B7 #B75838 #57B738 #3897B7
square
#9838B7 #B75838 #57B738 #3897B7
split-complementary
#9838B7 #97B738 #38B758
monochromatic
#4A1B59 #712A88 #9838B7 #B35ECE #C98DDC

Accessibility & contrast

On white

5.86
#9838B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#9838B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838B7
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838B7#FFFFFF#000000##FFFFFF
##9838B71.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#3967B4
Tritanopia (blue-blind)
#965173
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9838b7;
/* rgb */ color: rgb(152, 56, 183);
/* oklch */ color: oklch(53.1% 0.201 316.7);
Tailwind
colors: {
  custom: {
    50: '#ba77cd',
    500: '#9838b7',
    950: '#000000',
  },
}
SCSS
$custom: #9838b7;
$custom-light: #ba77cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9838b7",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 285.354,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.53116,
    "c": 0.20086,
    "h": 316.7
  },
  "luminance": 0.12923
}

Semantic roles & 50–950 ramp

primary
#9838B7
secondary
#94C784
accent
#DD4B6F
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9838B7

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

Preview Lab → · Contrast checker → · Palette generator →

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