#9D38DF#9D38DF

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

Color values

HEX#9D38DF
RGBrgb(157, 56, 223)
HSLhsl(276, 72%, 55%)
HSVhsv(276, 75%, 87%)
CMYKcmyk(29.6%, 74.9%, 0%, 12.5%)
CIE-LABlab(46.08, 67.62, -66.61)
CIE-LCHlch(46.08, 94.92, 315.43°)
OKLaboklab(56.56% 0.147 -0.1892)
OKLCHoklch(56.56% 0.24 307.9)
XYZxyz(28.6353, 15.3246, 71.2472)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38DF #7ADF38
analogous
#4938DF #9D38DF #DF38CE
triadic
#9D38DF #DF9D38 #38DF9D
tetradic
#9D38DF #DF4938 #7ADF38 #38CEDF
square
#9D38DF #DF4938 #7ADF38 #38CEDF
split-complementary
#9D38DF #CEDF38 #38DF49
monochromatic
#5A1687 #7D1EBC #9D38DF #B76DE7 #D1A1F0

Accessibility & contrast

On white

5.17
#9D38DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9D38DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38DF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38DF#FFFFFF#000000##FFFFFF
##9D38DF1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE4
Deuteranopia (green-blind)
#006EDC
Tritanopia (blue-blind)
#92618A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9d38df;
/* rgb */ color: rgb(157, 56, 223);
/* oklch */ color: oklch(56.6% 0.240 307.9);
Tailwind
colors: {
  custom: {
    50: '#c079ea',
    500: '#9d38df',
    950: '#000000',
  },
}
SCSS
$custom: #9d38df;
$custom-light: #c079ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38df",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 223
  },
  "hsl": {
    "h": 276.287,
    "s": 72.294,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56556,
    "c": 0.23962,
    "h": 307.9
  },
  "luminance": 0.15324
}

Semantic roles & 50–950 ramp

primary
#9D38DF
secondary
#B2DD96
accent
#EF3981
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D38DF

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

Preview Lab → · Contrast checker → · Palette generator →

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