#9F48E5#9F48E5

#9F48E5 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.9% C 0.228 H 305.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#9F48E5
RGBrgb(159, 72, 229)
HSLhsl(273, 75%, 59%)
HSVhsv(273, 69%, 90%)
CMYKcmyk(30.6%, 68.6%, 0%, 10.2%)
CIE-LABlab(49.08, 62.73, -65.12)
CIE-LCHlch(49.08, 90.42, 313.93°)
OKLaboklab(58.88% 0.1336 -0.1849)
OKLCHoklch(58.88% 0.228 305.9)
XYZxyz(30.7552, 17.6631, 75.9026)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F48E5 #8EE548
analogous
#5148E5 #9F48E5 #E548DD
triadic
#9F48E5 #E59F48 #48E59F
tetradic
#9F48E5 #E55148 #8EE548 #48DDE5
square
#9F48E5 #E55148 #8EE548 #48DDE5
split-complementary
#9F48E5 #DDE548 #48E551
monochromatic
#61169C #821ED2 #9F48E5 #BB7EED #D7B3F4

Accessibility & contrast

On white

4.63
#9F48E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#9F48E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9F48E5
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F48E5#FFFFFF#000000##FFFFFF
##9F48E51.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EA
Deuteranopia (green-blind)
#0E75E2
Tritanopia (blue-blind)
#936C91
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9f48e5;
/* rgb */ color: rgb(159, 72, 229);
/* oklch */ color: oklch(58.9% 0.228 305.9);
Tailwind
colors: {
  custom: {
    50: '#c081ee',
    500: '#9f48e5',
    950: '#000000',
  },
}
SCSS
$custom: #9f48e5;
$custom-light: #c081ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9f48e5",
  "rgb": {
    "r": 159,
    "g": 72,
    "b": 229
  },
  "hsl": {
    "h": 273.248,
    "s": 75.12,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58878,
    "c": 0.22807,
    "h": 305.9
  },
  "luminance": 0.17663
}

Semantic roles & 50–950 ramp

primary
#9F48E5
secondary
#C1E3A6
accent
#F2368A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F48E5

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

Preview Lab → · Contrast checker → · Palette generator →

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