#9C38D7#9C38D7

#9C38D7 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.8% C 0.232 H 309.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9C38D7
RGBrgb(156, 56, 215)
HSLhsl(278, 67%, 53%)
HSVhsv(278, 74%, 84%)
CMYKcmyk(27.4%, 74%, 0%, 15.7%)
CIE-LABlab(45.36, 65.75, -63.20)
CIE-LCHlch(45.36, 91.20, 316.13°)
OKLaboklab(55.84% 0.1472 -0.1792)
OKLCHoklch(55.84% 0.232 309.4)
XYZxyz(27.3877, 14.8031, 65.6913)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C38D7 #73D738
analogous
#4C38D7 #9C38D7 #D738C2
triadic
#9C38D7 #D79C38 #38D79C
tetradic
#9C38D7 #D74C38 #73D738 #38C2D7
square
#9C38D7 #D74C38 #73D738 #38C2D7
split-complementary
#9C38D7 #C2D738 #38D74C
monochromatic
#57197C #7B23AF #9C38D7 #B56BE1 #CF9EEB

Accessibility & contrast

On white

5.30
#9C38D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9C38D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C38D7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C38D7#FFFFFF#000000##FFFFFF
##9C38D71.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#046DD4
Tritanopia (blue-blind)
#935E85
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9c38d7;
/* rgb */ color: rgb(156, 56, 215);
/* oklch */ color: oklch(55.8% 0.232 309.4);
Tailwind
colors: {
  custom: {
    50: '#be78e4',
    500: '#9c38d7',
    950: '#000000',
  },
}
SCSS
$custom: #9c38d7;
$custom-light: #be78e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9c38d7",
  "rgb": {
    "r": 156,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 277.736,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55844,
    "c": 0.23193,
    "h": 309.4
  },
  "luminance": 0.14803
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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