#9F38DF#9F38DF

#9F38DF is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.8% C 0.240 H 308.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9F38DF
RGBrgb(159, 56, 223)
HSLhsl(277, 72%, 55%)
HSVhsv(277, 75%, 87%)
CMYKcmyk(28.7%, 74.9%, 0%, 12.5%)
CIE-LABlab(46.35, 67.98, -66.15)
CIE-LCHlch(46.35, 94.85, 315.78°)
OKLaboklab(56.81% 0.1497 -0.1878)
OKLCHoklch(56.81% 0.24 308.6)
XYZxyz(29.0288, 15.5275, 71.2656)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38DF #78DF38
analogous
#4C38DF #9F38DF #DF38CB
triadic
#9F38DF #DF9F38 #38DF9F
tetradic
#9F38DF #DF4C38 #78DF38 #38CBDF
square
#9F38DF #DF4C38 #78DF38 #38CBDF
split-complementary
#9F38DF #CBDF38 #38DF4C
monochromatic
#5C1687 #7F1EBC #9F38DF #B86DE7 #D2A1F0

Accessibility & contrast

On white

5.12
#9F38DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9F38DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38DF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38DF#FFFFFF#000000##FFFFFF
##9F38DF1.005.124.115.12
#FFFFFF5.121.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE4
Deuteranopia (green-blind)
#006FDC
Tritanopia (blue-blind)
#95618A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9f38df;
/* rgb */ color: rgb(159, 56, 223);
/* oklch */ color: oklch(56.8% 0.240 308.6);
Tailwind
colors: {
  custom: {
    50: '#c179ea',
    500: '#9f38df',
    950: '#000000',
  },
}
SCSS
$custom: #9f38df;
$custom-light: #c179ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38df",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 223
  },
  "hsl": {
    "h": 277.006,
    "s": 72.294,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56805,
    "c": 0.24013,
    "h": 308.6
  },
  "luminance": 0.15527
}

Semantic roles & 50–950 ramp

primary
#9F38DF
secondary
#B1DD96
accent
#EF397F
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F38DF

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

Preview Lab → · Contrast checker → · Palette generator →

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