#9838C5#9838C5

#9838C5 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.214 H 312.6°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9838C5
RGBrgb(152, 56, 197)
HSLhsl(281, 56%, 50%)
HSVhsv(281, 72%, 77%)
CMYKcmyk(22.8%, 71.6%, 0%, 22.7%)
CIE-LABlab(43.56, 61.22, -55.76)
CIE-LCHlch(43.56, 82.81, 317.68°)
OKLaboklab(54.06% 0.1448 -0.1575)
OKLCHoklch(54.06% 0.214 312.6)
XYZxyz(24.4393, 13.5357, 54.1377)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838C5 #65C538
analogous
#5238C5 #9838C5 #C538AC
triadic
#9838C5 #C59838 #38C598
tetradic
#9838C5 #C55238 #65C538 #38ACC5
square
#9838C5 #C55238 #65C538 #38ACC5
split-complementary
#9838C5 #ACC538 #38C552
monochromatic
#4E1D66 #732A95 #9838C5 #B167D4 #C996E1

Accessibility & contrast

On white

5.66
#9838C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9838C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838C5
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838C5#FFFFFF#000000##FFFFFF
##9838C51.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#2969C2
Tritanopia (blue-blind)
#93577B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9838c5;
/* rgb */ color: rgb(152, 56, 197);
/* oklch */ color: oklch(54.1% 0.214 312.6);
Tailwind
colors: {
  custom: {
    50: '#bb77d7',
    500: '#9838c5',
    950: '#000000',
  },
}
SCSS
$custom: #9838c5;
$custom-light: #bb77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9838c5",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 280.851,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54056,
    "c": 0.21392,
    "h": 312.6
  },
  "luminance": 0.13535
}

Semantic roles & 50–950 ramp

primary
#9838C5
secondary
#A1CD8C
accent
#DF4979
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9838C5

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

Preview Lab → · Contrast checker → · Palette generator →

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