#9C38D8#9C38D8

#9C38D8 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.9% C 0.233 H 309.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9C38D8
RGBrgb(156, 56, 216)
HSLhsl(278, 67%, 53%)
HSVhsv(278, 74%, 85%)
CMYKcmyk(27.8%, 74.1%, 0%, 15.3%)
CIE-LABlab(45.43, 65.96, -63.66)
CIE-LCHlch(45.43, 91.67, 316.02°)
OKLaboklab(55.92% 0.147 -0.1806)
OKLCHoklch(55.92% 0.233 309.2)
XYZxyz(27.5166, 14.8547, 66.3701)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C38D8 #74D838
analogous
#4C38D8 #9C38D8 #D838C4
triadic
#9C38D8 #D89C38 #38D89C
tetradic
#9C38D8 #D84C38 #74D838 #38C4D8
square
#9C38D8 #D84C38 #74D838 #38C4D8
split-complementary
#9C38D8 #C4D838 #38D84C
monochromatic
#57197D #7B23B0 #9C38D8 #B56BE2 #CF9EEC

Accessibility & contrast

On white

5.29
#9C38D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9C38D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C38D8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C38D8#FFFFFF#000000##FFFFFF
##9C38D81.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#006DD5
Tritanopia (blue-blind)
#935E86
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9c38d8;
/* rgb */ color: rgb(156, 56, 216);
/* oklch */ color: oklch(55.9% 0.233 309.2);
Tailwind
colors: {
  custom: {
    50: '#be78e5',
    500: '#9c38d8',
    950: '#000000',
  },
}
SCSS
$custom: #9c38d8;
$custom-light: #be78e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9c38d8",
  "rgb": {
    "r": 156,
    "g": 56,
    "b": 216
  },
  "hsl": {
    "h": 277.5,
    "s": 67.227,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55917,
    "c": 0.23286,
    "h": 309.2
  },
  "luminance": 0.14854
}

Semantic roles & 50–950 ramp

primary
#9C38D8
secondary
#ADD893
accent
#EA3E7E
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C38D8

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

Preview Lab → · Contrast checker → · Palette generator →

#9C38D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva