#9838B5#9838B5

#9838B5 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 53.0% C 0.199 H 317.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9838B5
RGBrgb(152, 56, 181)
HSLhsl(286, 53%, 46%)
HSVhsv(286, 69%, 71%)
CMYKcmyk(16%, 69.1%, 0%, 29%)
CIE-LABlab(42.52, 57.98, -48.06)
CIE-LCHlch(42.52, 75.31, 320.34°)
OKLaboklab(52.99% 0.1463 -0.1349)
OKLCHoklch(52.99% 0.199 317.3)
XYZxyz(22.7023, 12.8409, 44.9898)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838B5 #55B538
analogous
#5A38B5 #9838B5 #B53894
triadic
#9838B5 #B59838 #38B598
tetradic
#9838B5 #B55A38 #55B538 #3894B5
square
#9838B5 #B55A38 #55B538 #3894B5
split-complementary
#9838B5 #94B538 #38B55A
monochromatic
#4A1B58 #712A86 #9838B5 #B35DCD #C98CDB

Accessibility & contrast

On white

5.89
#9838B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9838B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838B5
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838B5#FFFFFF#000000##FFFFFF
##9838B51.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#3B67B2
Tritanopia (blue-blind)
#975072
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9838b5;
/* rgb */ color: rgb(152, 56, 181);
/* oklch */ color: oklch(53.0% 0.199 317.3);
Tailwind
colors: {
  custom: {
    50: '#ba77cc',
    500: '#9838b5',
    950: '#000000',
  },
}
SCSS
$custom: #9838b5;
$custom-light: #ba77cc;
$custom-dark: #000000;
JSON
{
  "hex": "#9838b5",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 286.08,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52986,
    "c": 0.19901,
    "h": 317.3
  },
  "luminance": 0.1284
}

Semantic roles & 50–950 ramp

primary
#9838B5
secondary
#92C683
accent
#DC4C6D
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9838B5

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

Preview Lab → · Contrast checker → · Palette generator →

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