#9C38E1#9C38E1

#9C38E1 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.6% C 0.241 H 307.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9C38E1
RGBrgb(156, 56, 225)
HSLhsl(276, 74%, 55%)
HSVhsv(276, 75%, 88%)
CMYKcmyk(30.7%, 75.1%, 0%, 11.8%)
CIE-LABlab(46.09, 67.87, -67.73)
CIE-LCHlch(46.09, 95.89, 315.06°)
OKLaboklab(56.58% 0.1453 -0.1925)
OKLCHoklch(56.58% 0.241 307)
XYZxyz(28.7122, 15.3329, 72.6665)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C38E1 #7DE138
analogous
#4838E1 #9C38E1 #E138D1
triadic
#9C38E1 #E19C38 #38E19C
tetradic
#9C38E1 #E14838 #7DE138 #38D1E1
square
#9C38E1 #E14838 #7DE138 #38D1E1
split-complementary
#9C38E1 #D1E138 #38E148
monochromatic
#5A158A #7D1DBF #9C38E1 #B66DE9 #D1A2F1

Accessibility & contrast

On white

5.16
#9C38E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9C38E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C38E1
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C38E1#FFFFFF#000000##FFFFFF
##9C38E11.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE6
Deuteranopia (green-blind)
#006EDE
Tritanopia (blue-blind)
#90628B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9c38e1;
/* rgb */ color: rgb(156, 56, 225);
/* oklch */ color: oklch(56.6% 0.241 307.0);
Tailwind
colors: {
  custom: {
    50: '#bf79eb',
    500: '#9c38e1',
    950: '#000000',
  },
}
SCSS
$custom: #9c38e1;
$custom-light: #bf79eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9c38e1",
  "rgb": {
    "r": 156,
    "g": 56,
    "b": 225
  },
  "hsl": {
    "h": 275.503,
    "s": 73.799,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56581,
    "c": 0.24123,
    "h": 307
  },
  "luminance": 0.15333
}

Semantic roles & 50–950 ramp

primary
#9C38E1
secondary
#B4DE97
accent
#F03783
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C38E1

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

Preview Lab → · Contrast checker → · Palette generator →

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