#9F4ECF#9F4ECF

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

Color values

HEX#9F4ECF
RGBrgb(159, 78, 207)
HSLhsl(278, 57%, 56%)
HSVhsv(278, 62%, 81%)
CMYKcmyk(23.2%, 62.3%, 0%, 18.8%)
CIE-LABlab(48.67, 55.07, -53.27)
CIE-LCHlch(48.67, 76.62, 315.95°)
OKLaboklab(58.13% 0.1288 -0.1501)
OKLCHoklch(58.13% 0.198 310.6)
XYZxyz(28.2828, 17.3253, 60.8736)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4ECF #7ECF4E
analogous
#5E4ECF #9F4ECF #CF4EBF
triadic
#9F4ECF #CF9F4E #4ECF9F
tetradic
#9F4ECF #CF5E4E #7ECF4E #4EBFCF
square
#9F4ECF #CF5E4E #7ECF4E #4EBFCF
split-complementary
#9F4ECF #BFCF4E #4ECF5E
monochromatic
#5D2380 #8030B0 #9F4ECF #B97EDC #D3AEE9

Accessibility & contrast

On white

4.70
#9F4ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#9F4ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F4ECF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4ECF#FFFFFF#000000##FFFFFF
##9F4ECF1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1070D3
Deuteranopia (green-blind)
#4075CC
Tritanopia (blue-blind)
#996787
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9f4ecf;
/* rgb */ color: rgb(159, 78, 207);
/* oklch */ color: oklch(58.1% 0.198 310.6);
Tailwind
colors: {
  custom: {
    50: '#bf84de',
    500: '#9f4ecf',
    950: '#000000',
  },
}
SCSS
$custom: #9f4ecf;
$custom-light: #bf84de;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4ecf",
  "rgb": {
    "r": 159,
    "g": 78,
    "b": 207
  },
  "hsl": {
    "h": 277.674,
    "s": 57.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58125,
    "c": 0.19774,
    "h": 310.6
  },
  "luminance": 0.17325
}

Semantic roles & 50–950 ramp

primary
#9F4ECF
secondary
#B6D7A2
accent
#E14780
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #9F4ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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