#9838D7#9838D7

#9838D7 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.3% C 0.231 H 308.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9838D7
RGBrgb(152, 56, 215)
HSLhsl(276, 67%, 53%)
HSVhsv(276, 74%, 84%)
CMYKcmyk(29.3%, 74%, 0%, 15.7%)
CIE-LABlab(44.82, 65.02, -64.11)
CIE-LCHlch(44.82, 91.31, 315.40°)
OKLaboklab(55.34% 0.142 -0.182)
OKLCHoklch(55.34% 0.231 308)
XYZxyz(26.6262, 14.4104, 65.6556)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838D7 #77D738
analogous
#4838D7 #9838D7 #D738C7
triadic
#9838D7 #D79838 #38D798
tetradic
#9838D7 #D74838 #77D738 #38C7D7
square
#9838D7 #D74838 #77D738 #38C7D7
split-complementary
#9838D7 #C7D738 #38D748
monochromatic
#55197C #7723AF #9838D7 #B26BE1 #CD9EEB

Accessibility & contrast

On white

5.41
#9838D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9838D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838D7
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838D7#FFFFFF#000000##FFFFFF
##9838D71.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#8E5E85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9838d7;
/* rgb */ color: rgb(152, 56, 215);
/* oklch */ color: oklch(55.3% 0.231 308.0);
Tailwind
colors: {
  custom: {
    50: '#bc78e4',
    500: '#9838d7',
    950: '#000000',
  },
}
SCSS
$custom: #9838d7;
$custom-light: #bc78e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9838d7",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 276.226,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55343,
    "c": 0.23085,
    "h": 308
  },
  "luminance": 0.1441
}

Semantic roles & 50–950 ramp

primary
#9838D7
secondary
#AED893
accent
#E93E82
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9838D7

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

Preview Lab → · Contrast checker → · Palette generator →

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