#9838D3#9838D3

#9838D3 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 55.0% C 0.227 H 308.9°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9838D3
RGBrgb(152, 56, 211)
HSLhsl(277, 64%, 52%)
HSVhsv(277, 73%, 83%)
CMYKcmyk(28%, 73.5%, 0%, 17.3%)
CIE-LABlab(44.53, 64.17, -62.28)
CIE-LCHlch(44.53, 89.42, 315.85°)
OKLaboklab(55.05% 0.1427 -0.1766)
OKLCHoklch(55.05% 0.227 308.9)
XYZxyz(26.1185, 14.2074, 62.9818)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838D3 #73D338
analogous
#4A38D3 #9838D3 #D338C1
triadic
#9838D3 #D39838 #38D398
tetradic
#9838D3 #D34A38 #73D338 #38C1D3
square
#9838D3 #D34A38 #73D338 #38C1D3
split-complementary
#9838D3 #C1D338 #38D34A
monochromatic
#531A76 #7725A9 #9838D3 #B26ADE #CC9CE9

Accessibility & contrast

On white

5.47
#9838D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9838D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838D3
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838D3#FFFFFF#000000##FFFFFF
##9838D31.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#036AD0
Tritanopia (blue-blind)
#8F5D83
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9838d3;
/* rgb */ color: rgb(152, 56, 211);
/* oklch */ color: oklch(55.0% 0.227 308.9);
Tailwind
colors: {
  custom: {
    50: '#bb78e1',
    500: '#9838d3',
    950: '#000000',
  },
}
SCSS
$custom: #9838d3;
$custom-light: #bb78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9838d3",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 211
  },
  "hsl": {
    "h": 277.161,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5505,
    "c": 0.22709,
    "h": 308.9
  },
  "luminance": 0.14207
}

Semantic roles & 50–950 ramp

primary
#9838D3
secondary
#ABD592
accent
#E74180
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9838D3

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

Preview Lab → · Contrast checker → · Palette generator →

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