#9838BE#9838BE

#9838BE is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.6% C 0.207 H 314.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#9838BE
RGBrgb(152, 56, 190)
HSLhsl(283, 54%, 48%)
HSVhsv(283, 71%, 75%)
CMYKcmyk(20%, 70.5%, 0%, 25.5%)
CIE-LABlab(43.10, 59.79, -52.42)
CIE-LCHlch(43.10, 79.51, 318.75°)
OKLaboklab(53.58% 0.1456 -0.1477)
OKLCHoklch(53.58% 0.207 314.6)
XYZxyz(23.6558, 13.2223, 50.0113)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838BE #5EBE38
analogous
#5538BE #9838BE #BE38A1
triadic
#9838BE #BE9838 #38BE98
tetradic
#9838BE #BE5538 #5EBE38 #38A1BE
square
#9838BE #BE5538 #5EBE38 #38A1BE
split-complementary
#9838BE #A1BE38 #38BE55
monochromatic
#4C1C5F #722A8F #9838BE #B262D1 #C992DF

Accessibility & contrast

On white

5.76
#9838BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9838BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838BE
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838BE#FFFFFF#000000##FFFFFF
##9838BE1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#3268BB
Tritanopia (blue-blind)
#955477
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9838be;
/* rgb */ color: rgb(152, 56, 190);
/* oklch */ color: oklch(53.6% 0.207 314.6);
Tailwind
colors: {
  custom: {
    50: '#ba77d2',
    500: '#9838be',
    950: '#000000',
  },
}
SCSS
$custom: #9838be;
$custom-light: #ba77d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9838be",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 282.985,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.53579,
    "c": 0.20737,
    "h": 314.6
  },
  "luminance": 0.13221
}

Semantic roles & 50–950 ramp

primary
#9838BE
secondary
#9BCA88
accent
#DE4A74
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9838BE

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

Preview Lab → · Contrast checker → · Palette generator →

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