#9838BB#9838BB

#9838BB is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.4% C 0.205 H 315.5°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9838BB
RGBrgb(152, 56, 187)
HSLhsl(284, 54%, 48%)
HSVhsv(284, 70%, 73%)
CMYKcmyk(18.7%, 70.1%, 0%, 26.7%)
CIE-LABlab(42.90, 59.18, -50.98)
CIE-LCHlch(42.90, 78.11, 319.26°)
OKLaboklab(53.38% 0.1458 -0.1435)
OKLCHoklch(53.38% 0.205 315.5)
XYZxyz(23.3313, 13.0925, 48.3022)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838BB #5BBB38
analogous
#5638BB #9838BB #BB389D
triadic
#9838BB #BB9838 #38BB98
tetradic
#9838BB #BB5638 #5BBB38 #389DBB
square
#9838BB #BB5638 #5BBB38 #389DBB
split-complementary
#9838BB #9DBB38 #38BB56
monochromatic
#4B1C5D #722A8C #9838BB #B261D0 #C990DE

Accessibility & contrast

On white

5.80
#9838BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#9838BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838BB
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838BB#FFFFFF#000000##FFFFFF
##9838BB1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#3568B8
Tritanopia (blue-blind)
#955376
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9838bb;
/* rgb */ color: rgb(152, 56, 187);
/* oklch */ color: oklch(53.4% 0.205 315.5);
Tailwind
colors: {
  custom: {
    50: '#ba77d0',
    500: '#9838bb',
    950: '#000000',
  },
}
SCSS
$custom: #9838bb;
$custom-light: #ba77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9838bb",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 283.969,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53379,
    "c": 0.20458,
    "h": 315.5
  },
  "luminance": 0.13092
}

Semantic roles & 50–950 ramp

primary
#9838BB
secondary
#98C886
accent
#DD4B72
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9838BB

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

Preview Lab → · Contrast checker → · Palette generator →

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