#9838D0#9838D0

#9838D0 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.8% C 0.224 H 309.7°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9838D0
RGBrgb(152, 56, 208)
HSLhsl(278, 62%, 52%)
HSVhsv(278, 73%, 82%)
CMYKcmyk(26.9%, 73.1%, 0%, 18.4%)
CIE-LABlab(44.32, 63.53, -60.90)
CIE-LCHlch(44.32, 88.00, 316.21°)
OKLaboklab(54.83% 0.1432 -0.1726)
OKLCHoklch(54.83% 0.224 309.7)
XYZxyz(25.7460, 14.0583, 61.0195)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838D0 #70D038
analogous
#4C38D0 #9838D0 #D038BC
triadic
#9838D0 #D09838 #38D098
tetradic
#9838D0 #D04C38 #70D038 #38BCD0
square
#9838D0 #D04C38 #70D038 #38BCD0
split-complementary
#9838D0 #BCD038 #38D04C
monochromatic
#521B73 #7627A4 #9838D0 #B26ADC #CB9BE7

Accessibility & contrast

On white

5.51
#9838D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#9838D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838D0
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838D0#FFFFFF#000000##FFFFFF
##9838D01.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D4
Deuteranopia (green-blind)
#116ACD
Tritanopia (blue-blind)
#905B81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9838d0;
/* rgb */ color: rgb(152, 56, 208);
/* oklch */ color: oklch(54.8% 0.224 309.7);
Tailwind
colors: {
  custom: {
    50: '#bb78df',
    500: '#9838d0',
    950: '#000000',
  },
}
SCSS
$custom: #9838d0;
$custom-light: #bb78df;
$custom-dark: #000000;
JSON
{
  "hex": "#9838d0",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 277.895,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54833,
    "c": 0.22426,
    "h": 309.7
  },
  "luminance": 0.14058
}

Semantic roles & 50–950 ramp

primary
#9838D0
secondary
#A9D391
accent
#E5437F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9838D0

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

Preview Lab → · Contrast checker → · Palette generator →

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