#9F4ECE#9F4ECE

#9F4ECE is a mid, vivid violet. Relative luminance 0.173; OKLCH L 58.1% C 0.197 H 310.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#9F4ECE
RGBrgb(159, 78, 206)
HSLhsl(278, 57%, 56%)
HSVhsv(278, 62%, 81%)
CMYKcmyk(22.8%, 62.1%, 0%, 19.2%)
CIE-LABlab(48.61, 54.85, -52.79)
CIE-LCHlch(48.61, 76.13, 316.10°)
OKLaboklab(58.06% 0.1288 -0.1487)
OKLCHoklch(58.06% 0.197 310.9)
XYZxyz(28.1610, 17.2766, 60.2318)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4ECE #7DCE4E
analogous
#5F4ECE #9F4ECE #CE4EBD
triadic
#9F4ECE #CE9F4E #4ECE9F
tetradic
#9F4ECE #CE5F4E #7DCE4E #4EBDCE
square
#9F4ECE #CE5F4E #7DCE4E #4EBDCE
split-complementary
#9F4ECE #BDCE4E #4ECE5F
monochromatic
#5D237F #8030AE #9F4ECE #B97EDB #D3AEE9

Accessibility & contrast

On white

4.71
#9F4ECE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#9F4ECE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F4ECE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4ECE#FFFFFF#000000##FFFFFF
##9F4ECE1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1370D2
Deuteranopia (green-blind)
#4175CB
Tritanopia (blue-blind)
#996787
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f4ece;
/* rgb */ color: rgb(159, 78, 206);
/* oklch */ color: oklch(58.1% 0.197 310.9);
Tailwind
colors: {
  custom: {
    50: '#bf84de',
    500: '#9f4ece',
    950: '#000000',
  },
}
SCSS
$custom: #9f4ece;
$custom-light: #bf84de;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4ece",
  "rgb": {
    "r": 159,
    "g": 78,
    "b": 206
  },
  "hsl": {
    "h": 277.969,
    "s": 56.637,
    "l": 55.686
  },
  "oklch": {
    "l": 0.58061,
    "c": 0.1967,
    "h": 310.9
  },
  "luminance": 0.17276
}

Semantic roles & 50–950 ramp

primary
#9F4ECE
secondary
#B5D7A1
accent
#E04880
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #9F4ECE

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

Preview Lab → · Contrast checker → · Palette generator →

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