#9838C7#9838C7

#9838C7 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.216 H 312.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9838C7
RGBrgb(152, 56, 199)
HSLhsl(280, 56%, 50%)
HSVhsv(280, 72%, 78%)
CMYKcmyk(23.6%, 71.9%, 0%, 22%)
CIE-LABlab(43.69, 61.64, -56.70)
CIE-LCHlch(43.69, 83.75, 317.39°)
OKLaboklab(54.2% 0.1445 -0.1602)
OKLCHoklch(54.2% 0.216 312)
XYZxyz(24.6700, 13.6279, 55.3526)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838C7 #67C738
analogous
#5138C7 #9838C7 #C738AE
triadic
#9838C7 #C79838 #38C798
tetradic
#9838C7 #C75138 #67C738 #38AEC7
square
#9838C7 #C75138 #67C738 #38AEC7
split-complementary
#9838C7 #AEC738 #38C751
monochromatic
#4F1D67 #742B97 #9838C7 #B168D4 #C998E2

Accessibility & contrast

On white

5.64
#9838C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9838C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838C7
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838C7#FFFFFF#000000##FFFFFF
##9838C71.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#2669C4
Tritanopia (blue-blind)
#92587C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9838c7;
/* rgb */ color: rgb(152, 56, 199);
/* oklch */ color: oklch(54.2% 0.216 312.0);
Tailwind
colors: {
  custom: {
    50: '#bb77d9',
    500: '#9838c7',
    950: '#000000',
  },
}
SCSS
$custom: #9838c7;
$custom-light: #bb77d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9838c7",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 280.28,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.54195,
    "c": 0.21579,
    "h": 312
  },
  "luminance": 0.13627
}

Semantic roles & 50–950 ramp

primary
#9838C7
secondary
#A2CD8D
accent
#DF487A
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9838C7

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

Preview Lab → · Contrast checker → · Palette generator →

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