#9838B2#9838B2

#9838B2 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.8% C 0.196 H 318.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9838B2
RGBrgb(152, 56, 178)
HSLhsl(287, 52%, 46%)
HSVhsv(287, 69%, 70%)
CMYKcmyk(14.6%, 68.5%, 0%, 30.2%)
CIE-LABlab(42.34, 57.38, -46.59)
CIE-LCHlch(42.34, 73.92, 320.93°)
OKLaboklab(52.79% 0.1465 -0.1306)
OKLCHoklch(52.79% 0.196 318.3)
XYZxyz(22.3978, 12.7191, 43.3861)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838B2 #52B238
analogous
#5B38B2 #9838B2 #B2388F
triadic
#9838B2 #B29838 #38B298
tetradic
#9838B2 #B25B38 #52B238 #388FB2
square
#9838B2 #B25B38 #52B238 #388FB2
split-complementary
#9838B2 #8FB238 #38B25B
monochromatic
#481B55 #702983 #9838B2 #B45CCC #C98ADA

Accessibility & contrast

On white

5.93
#9838B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9838B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838B2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838B2#FFFFFF#000000##FFFFFF
##9838B21.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#3E67AF
Tritanopia (blue-blind)
#974F71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9838b2;
/* rgb */ color: rgb(152, 56, 178);
/* oklch */ color: oklch(52.8% 0.196 318.3);
Tailwind
colors: {
  custom: {
    50: '#ba76ca',
    500: '#9838b2',
    950: '#000000',
  },
}
SCSS
$custom: #9838b2;
$custom-light: #ba76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9838b2",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 287.213,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.52793,
    "c": 0.19625,
    "h": 318.3
  },
  "luminance": 0.12718
}

Semantic roles & 50–950 ramp

primary
#9838B2
secondary
#90C581
accent
#DC4C6B
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9838B2

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

Preview Lab → · Contrast checker → · Palette generator →

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