#9838C8#9838C8

#9838C8 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.217 H 311.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9838C8
RGBrgb(152, 56, 200)
HSLhsl(280, 57%, 50%)
HSVhsv(280, 72%, 78%)
CMYKcmyk(24%, 72%, 0%, 21.6%)
CIE-LABlab(43.76, 61.85, -57.17)
CIE-LCHlch(43.76, 84.22, 317.25°)
OKLaboklab(54.26% 0.1444 -0.1616)
OKLCHoklch(54.26% 0.217 311.8)
XYZxyz(24.7865, 13.6745, 55.9661)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838C8 #68C838
analogous
#5038C8 #9838C8 #C838B0
triadic
#9838C8 #C89838 #38C898
tetradic
#9838C8 #C85038 #68C838 #38B0C8
square
#9838C8 #C85038 #68C838 #38B0C8
split-complementary
#9838C8 #B0C838 #38C850
monochromatic
#4F1D69 #742A99 #9838C8 #B168D5 #CA98E3

Accessibility & contrast

On white

5.62
#9838C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9838C8
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838C8#FFFFFF#000000##FFFFFF
##9838C81.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#2469C5
Tritanopia (blue-blind)
#92587D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9838c8;
/* rgb */ color: rgb(152, 56, 200);
/* oklch */ color: oklch(54.3% 0.217 311.8);
Tailwind
colors: {
  custom: {
    50: '#bb77d9',
    500: '#9838c8',
    950: '#000000',
  },
}
SCSS
$custom: #9838c8;
$custom-light: #bb77d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9838c8",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 280,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54265,
    "c": 0.21674,
    "h": 311.8
  },
  "luminance": 0.13674
}

Semantic roles & 50–950 ramp

primary
#9838C8
secondary
#A3CE8E
accent
#E0487B
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9838C8

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

Preview Lab → · Contrast checker → · Palette generator →

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