#9F38D9#9F38D9

#9F38D9 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.4% C 0.235 H 310.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9F38D9
RGBrgb(159, 56, 217)
HSLhsl(278, 68%, 54%)
HSVhsv(278, 74%, 85%)
CMYKcmyk(26.7%, 74.2%, 0%, 14.9%)
CIE-LABlab(45.92, 66.72, -63.42)
CIE-LCHlch(45.92, 92.05, 316.45°)
OKLaboklab(56.37% 0.1508 -0.1798)
OKLCHoklch(56.37% 0.235 310)
XYZxyz(28.2342, 15.2096, 67.0806)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38D9 #72D938
analogous
#4E38D9 #9F38D9 #D938C2
triadic
#9F38D9 #D99F38 #38D99F
tetradic
#9F38D9 #D94E38 #72D938 #38C2D9
square
#9F38D9 #D94E38 #72D938 #38C2D9
split-complementary
#9F38D9 #C2D938 #38D94E
monochromatic
#5A187E #7E22B2 #9F38D9 #B86BE3 #D19FED

Accessibility & contrast

On white

5.20
#9F38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9F38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38D9
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38D9#FFFFFF#000000##FFFFFF
##9F38D91.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#0B6ED6
Tritanopia (blue-blind)
#975E86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9f38d9;
/* rgb */ color: rgb(159, 56, 217);
/* oklch */ color: oklch(56.4% 0.235 310.0);
Tailwind
colors: {
  custom: {
    50: '#c079e6',
    500: '#9f38d9',
    950: '#000000',
  },
}
SCSS
$custom: #9f38d9;
$custom-light: #c079e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38d9",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 278.385,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56368,
    "c": 0.23461,
    "h": 310
  },
  "luminance": 0.15209
}

Semantic roles & 50–950 ramp

primary
#9F38D9
secondary
#ADD994
accent
#EB3D7C
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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