#9F38D7#9F38D7

#9F38D7 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.2% C 0.233 H 310.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9F38D7
RGBrgb(159, 56, 215)
HSLhsl(279, 67%, 53%)
HSVhsv(279, 74%, 84%)
CMYKcmyk(26%, 74%, 0%, 15.7%)
CIE-LABlab(45.78, 66.31, -62.50)
CIE-LCHlch(45.78, 91.12, 316.69°)
OKLaboklab(56.22% 0.1511 -0.1771)
OKLCHoklch(56.22% 0.233 310.5)
XYZxyz(27.9756, 15.1062, 65.7189)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38D7 #70D738
analogous
#4F38D7 #9F38D7 #D738BF
triadic
#9F38D7 #D79F38 #38D79F
tetradic
#9F38D7 #D74F38 #70D738 #38BFD7
square
#9F38D7 #D74F38 #70D738 #38BFD7
split-complementary
#9F38D7 #BFD738 #38D74F
monochromatic
#59197C #7E23AF #9F38D7 #B86BE1 #D09EEB

Accessibility & contrast

On white

5.22
#9F38D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9F38D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38D7
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38D7#FFFFFF#000000##FFFFFF
##9F38D71.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DB
Deuteranopia (green-blind)
#136ED4
Tritanopia (blue-blind)
#975D85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9f38d7;
/* rgb */ color: rgb(159, 56, 215);
/* oklch */ color: oklch(56.2% 0.233 310.5);
Tailwind
colors: {
  custom: {
    50: '#c079e4',
    500: '#9f38d7',
    950: '#000000',
  },
}
SCSS
$custom: #9f38d7;
$custom-light: #c079e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38d7",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 278.868,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56224,
    "c": 0.23278,
    "h": 310.5
  },
  "luminance": 0.15106
}

Semantic roles & 50–950 ramp

primary
#9F38D7
secondary
#ABD893
accent
#E93E7B
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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