#9838BD#9838BD

#9838BD is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.5% C 0.206 H 314.9°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#9838BD
RGBrgb(152, 56, 189)
HSLhsl(283, 54%, 48%)
HSVhsv(283, 70%, 74%)
CMYKcmyk(19.6%, 70.4%, 0%, 25.9%)
CIE-LABlab(43.03, 59.58, -51.94)
CIE-LCHlch(43.03, 79.04, 318.92°)
OKLaboklab(53.51% 0.1457 -0.1463)
OKLCHoklch(53.51% 0.206 314.9)
XYZxyz(23.5469, 13.1787, 49.4376)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838BD #5DBD38
analogous
#5538BD #9838BD #BD38A0
triadic
#9838BD #BD9838 #38BD98
tetradic
#9838BD #BD5538 #5DBD38 #38A0BD
square
#9838BD #BD5538 #5DBD38 #38A0BD
split-complementary
#9838BD #A0BD38 #38BD55
monochromatic
#4C1C5F #722A8E #9838BD #B262D0 #C991DE

Accessibility & contrast

On white

5.78
#9838BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9838BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838BD
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838BD#FFFFFF#000000##FFFFFF
##9838BD1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#3368BA
Tritanopia (blue-blind)
#955377
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9838bd;
/* rgb */ color: rgb(152, 56, 189);
/* oklch */ color: oklch(53.5% 0.206 314.9);
Tailwind
colors: {
  custom: {
    50: '#ba77d2',
    500: '#9838bd',
    950: '#000000',
  },
}
SCSS
$custom: #9838bd;
$custom-light: #ba77d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9838bd",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 283.308,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53512,
    "c": 0.20644,
    "h": 314.9
  },
  "luminance": 0.13178
}

Semantic roles & 50–950 ramp

primary
#9838BD
secondary
#9AC987
accent
#DE4A73
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9838BD

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

Preview Lab → · Contrast checker → · Palette generator →

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