#9838C0#9838C0

#9838C0 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.7% C 0.209 H 314.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9838C0
RGBrgb(152, 56, 192)
HSLhsl(282, 55%, 49%)
HSVhsv(282, 71%, 75%)
CMYKcmyk(20.8%, 70.8%, 0%, 24.7%)
CIE-LABlab(43.23, 60.19, -53.38)
CIE-LCHlch(43.23, 80.45, 318.43°)
OKLaboklab(53.71% 0.1454 -0.1505)
OKLCHoklch(53.71% 0.209 314)
XYZxyz(23.8759, 13.3103, 51.1704)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838C0 #60C038
analogous
#5438C0 #9838C0 #C038A4
triadic
#9838C0 #C09838 #38C098
tetradic
#9838C0 #C05438 #60C038 #38A4C0
square
#9838C0 #C05438 #60C038 #38A4C0
split-complementary
#9838C0 #A4C038 #38C054
monochromatic
#4D1C61 #722A91 #9838C0 #B164D2 #C993DF

Accessibility & contrast

On white

5.73
#9838C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9838C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838C0
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838C0#FFFFFF#000000##FFFFFF
##9838C01.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#3068BD
Tritanopia (blue-blind)
#945578
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9838c0;
/* rgb */ color: rgb(152, 56, 192);
/* oklch */ color: oklch(53.7% 0.209 314.0);
Tailwind
colors: {
  custom: {
    50: '#ba77d4',
    500: '#9838c0',
    950: '#000000',
  },
}
SCSS
$custom: #9838c0;
$custom-light: #ba77d4;
$custom-dark: #000000;
JSON
{
  "hex": "#9838c0",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 282.353,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.53714,
    "c": 0.20924,
    "h": 314
  },
  "luminance": 0.1331
}

Semantic roles & 50–950 ramp

primary
#9838C0
secondary
#9CCB89
accent
#DE4A75
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9838C0

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

Preview Lab → · Contrast checker → · Palette generator →

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