#9838BF#9838BF

#9838BF is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.6% C 0.208 H 314.3°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#9838BF
RGBrgb(152, 56, 191)
HSLhsl(283, 55%, 48%)
HSVhsv(283, 71%, 75%)
CMYKcmyk(20.4%, 70.7%, 0%, 25.1%)
CIE-LABlab(43.16, 59.99, -52.90)
CIE-LCHlch(43.16, 79.98, 318.59°)
OKLaboklab(53.65% 0.1455 -0.1491)
OKLCHoklch(53.65% 0.208 314.3)
XYZxyz(23.7655, 13.2661, 50.5888)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838BF #5FBF38
analogous
#5538BF #9838BF #BF38A2
triadic
#9838BF #BF9838 #38BF98
tetradic
#9838BF #BF5538 #5FBF38 #38A2BF
square
#9838BF #BF5538 #5FBF38 #38A2BF
split-complementary
#9838BF #A2BF38 #38BF55
monochromatic
#4D1C60 #722A90 #9838BF #B163D1 #C992DF

Accessibility & contrast

On white

5.75
#9838BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#9838BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838BF
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838BF#FFFFFF#000000##FFFFFF
##9838BF1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#3168BC
Tritanopia (blue-blind)
#945478
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9838bf;
/* rgb */ color: rgb(152, 56, 191);
/* oklch */ color: oklch(53.6% 0.208 314.3);
Tailwind
colors: {
  custom: {
    50: '#ba77d3',
    500: '#9838bf',
    950: '#000000',
  },
}
SCSS
$custom: #9838bf;
$custom-light: #ba77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9838bf",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 282.667,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.53646,
    "c": 0.20831,
    "h": 314.3
  },
  "luminance": 0.13265
}

Semantic roles & 50–950 ramp

primary
#9838BF
secondary
#9CCA89
accent
#DE4A75
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9838BF

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

Preview Lab → · Contrast checker → · Palette generator →

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