#9C38D9#9C38D9

#9C38D9 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 56.0% C 0.234 H 308.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9C38D9
RGBrgb(156, 56, 217)
HSLhsl(277, 68%, 54%)
HSVhsv(277, 74%, 85%)
CMYKcmyk(28.1%, 74.2%, 0%, 14.9%)
CIE-LABlab(45.51, 66.17, -64.11)
CIE-LCHlch(45.51, 92.14, 315.91°)
OKLaboklab(55.99% 0.1469 -0.1819)
OKLCHoklch(55.99% 0.234 308.9)
XYZxyz(27.6463, 14.9065, 67.0530)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C38D9 #75D938
analogous
#4B38D9 #9C38D9 #D938C5
triadic
#9C38D9 #D99C38 #38D99C
tetradic
#9C38D9 #D94B38 #75D938 #38C5D9
square
#9C38D9 #D94B38 #75D938 #38C5D9
split-complementary
#9C38D9 #C5D938 #38D94B
monochromatic
#58187E #7B22B2 #9C38D9 #B66BE3 #CF9FED

Accessibility & contrast

On white

5.27
#9C38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9C38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C38D9
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C38D9#FFFFFF#000000##FFFFFF
##9C38D91.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c38d9;
/* rgb */ color: rgb(156, 56, 217);
/* oklch */ color: oklch(56.0% 0.234 308.9);
Tailwind
colors: {
  custom: {
    50: '#be78e6',
    500: '#9c38d9',
    950: '#000000',
  },
}
SCSS
$custom: #9c38d9;
$custom-light: #be78e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c38d9",
  "rgb": {
    "r": 156,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 277.267,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5599,
    "c": 0.23379,
    "h": 308.9
  },
  "luminance": 0.14906
}

Semantic roles & 50–950 ramp

primary
#9C38D9
secondary
#AED994
accent
#EB3D7F
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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