#9838AE#9838AE

#9838AE is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.5% C 0.193 H 319.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9838AE
RGBrgb(152, 56, 174)
HSLhsl(289, 51%, 45%)
HSVhsv(289, 68%, 68%)
CMYKcmyk(12.6%, 67.8%, 0%, 31.8%)
CIE-LABlab(42.09, 56.60, -44.62)
CIE-LCHlch(42.09, 72.07, 321.75°)
OKLaboklab(52.54% 0.1466 -0.1248)
OKLCHoklch(52.54% 0.193 319.6)
XYZxyz(22.0021, 12.5608, 41.3017)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838AE #4EAE38
analogous
#5D38AE #9838AE #AE3889
triadic
#9838AE #AE9838 #38AE98
tetradic
#9838AE #AE5D38 #4EAE38 #3889AE
square
#9838AE #AE5D38 #4EAE38 #3889AE
split-complementary
#9838AE #89AE38 #38AE5D
monochromatic
#471A51 #702980 #9838AE #B559CA #CA88D9

Accessibility & contrast

On white

5.98
#9838AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9838AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838AE
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838AE#FFFFFF#000000##FFFFFF
##9838AE1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095DB1
Deuteranopia (green-blind)
#4167AB
Tritanopia (blue-blind)
#984D6F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9838ae;
/* rgb */ color: rgb(152, 56, 174);
/* oklch */ color: oklch(52.5% 0.193 319.6);
Tailwind
colors: {
  custom: {
    50: '#ba76c7',
    500: '#9838ae',
    950: '#000000',
  },
}
SCSS
$custom: #9838ae;
$custom-light: #ba76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9838ae",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 288.814,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52541,
    "c": 0.19257,
    "h": 319.6
  },
  "luminance": 0.1256
}

Semantic roles & 50–950 ramp

primary
#9838AE
secondary
#8CC37F
accent
#DB4D67
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9838AE

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

Preview Lab → · Contrast checker → · Palette generator →

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