#9F45DE#9F45DE

#9F45DE is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.1% C 0.225 H 307.7°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9F45DE
RGBrgb(159, 69, 222)
HSLhsl(275, 70%, 57%)
HSVhsv(275, 69%, 87%)
CMYKcmyk(28.4%, 68.9%, 0%, 12.9%)
CIE-LABlab(48.14, 62.50, -62.69)
CIE-LCHlch(48.14, 88.52, 314.91°)
OKLaboklab(58.05% 0.1375 -0.1777)
OKLCHoklch(58.05% 0.225 307.7)
XYZxyz(29.6083, 16.9015, 70.7956)
Luminance0.1690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45DE #84DE45
analogous
#5345DE #9F45DE #DE45D1
triadic
#9F45DE #DE9F45 #45DE9F
tetradic
#9F45DE #DE5345 #84DE45 #45D1DE
square
#9F45DE #DE5345 #84DE45 #45D1DE
split-complementary
#9F45DE #D1DE45 #45DE53
monochromatic
#5F198F #8123C3 #9F45DE #BA79E7 #D5ADF0

Accessibility & contrast

On white

4.79
#9F45DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#9F45DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45DE
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45DE#FFFFFF#000000##FFFFFF
##9F45DE1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE2
Deuteranopia (green-blind)
#1D73DB
Tritanopia (blue-blind)
#95678D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9f45de;
/* rgb */ color: rgb(159, 69, 222);
/* oklch */ color: oklch(58.1% 0.225 307.7);
Tailwind
colors: {
  custom: {
    50: '#c07fe9',
    500: '#9f45de',
    950: '#000000',
  },
}
SCSS
$custom: #9f45de;
$custom-light: #c07fe9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45de",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 222
  },
  "hsl": {
    "h": 275.294,
    "s": 69.863,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5805,
    "c": 0.2247,
    "h": 307.7
  },
  "luminance": 0.16901
}

Semantic roles & 50–950 ramp

primary
#9F45DE
secondary
#BADFA0
accent
#ED3B84
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F45DE

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

Preview Lab → · Contrast checker → · Palette generator →

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