#9838CC#9838CC

#9838CC is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.5% C 0.220 H 310.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#9838CC
RGBrgb(152, 56, 204)
HSLhsl(279, 59%, 51%)
HSVhsv(279, 73%, 80%)
CMYKcmyk(25.5%, 72.5%, 0%, 20%)
CIE-LABlab(44.04, 62.69, -59.04)
CIE-LCHlch(44.04, 86.11, 316.71°)
OKLaboklab(54.55% 0.1438 -0.1671)
OKLCHoklch(54.55% 0.22 310.7)
XYZxyz(25.2601, 13.8640, 58.4604)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838CC #6CCC38
analogous
#4E38CC #9838CC #CC38B6
triadic
#9838CC #CC9838 #38CC98
tetradic
#9838CC #CC4E38 #6CCC38 #38B6CC
square
#9838CC #CC4E38 #6CCC38 #38B6CC
split-complementary
#9838CC #B6CC38 #38CC4E
monochromatic
#511C6E #75299E #9838CC #B169D8 #CA99E5

Accessibility & contrast

On white

5.57
#9838CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9838CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838CC
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838CC#FFFFFF#000000##FFFFFF
##9838CC1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#1C6AC9
Tritanopia (blue-blind)
#915A7F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9838cc;
/* rgb */ color: rgb(152, 56, 204);
/* oklch */ color: oklch(54.5% 0.220 310.7);
Tailwind
colors: {
  custom: {
    50: '#bb77dc',
    500: '#9838cc',
    950: '#000000',
  },
}
SCSS
$custom: #9838cc;
$custom-light: #bb77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9838cc",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 278.919,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54547,
    "c": 0.22049,
    "h": 310.7
  },
  "luminance": 0.13863
}

Semantic roles & 50–950 ramp

primary
#9838CC
secondary
#A6D18F
accent
#E2457D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9838CC

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

Preview Lab → · Contrast checker → · Palette generator →

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