#9F45DD#9F45DD

#9F45DD is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 58.0% C 0.224 H 308.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9F45DD
RGBrgb(159, 69, 221)
HSLhsl(276, 69%, 57%)
HSVhsv(276, 69%, 87%)
CMYKcmyk(28.1%, 68.8%, 0%, 13.3%)
CIE-LABlab(48.07, 62.28, -62.23)
CIE-LCHlch(48.07, 88.04, 315.02°)
OKLaboklab(57.98% 0.1377 -0.1763)
OKLCHoklch(57.98% 0.224 308)
XYZxyz(29.4746, 16.8481, 70.0919)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45DD #83DD45
analogous
#5345DD #9F45DD #DD45CF
triadic
#9F45DD #DD9F45 #45DD9F
tetradic
#9F45DD #DD5345 #83DD45 #45CFDD
square
#9F45DD #DD5345 #83DD45 #45CFDD
split-complementary
#9F45DD #CFDD45 #45DD53
monochromatic
#5E1A8E #8123C1 #9F45DD #BA79E6 #D4ACF0

Accessibility & contrast

On white

4.81
#9F45DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#9F45DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45DD
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45DD#FFFFFF#000000##FFFFFF
##9F45DD1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#1F73DA
Tritanopia (blue-blind)
#95678C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9f45dd;
/* rgb */ color: rgb(159, 69, 221);
/* oklch */ color: oklch(58.0% 0.224 308.0);
Tailwind
colors: {
  custom: {
    50: '#c07fe8',
    500: '#9f45dd',
    950: '#000000',
  },
}
SCSS
$custom: #9f45dd;
$custom-light: #c07fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45dd",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 221
  },
  "hsl": {
    "h": 275.526,
    "s": 69.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5798,
    "c": 0.22371,
    "h": 308
  },
  "luminance": 0.16848
}

Semantic roles & 50–950 ramp

primary
#9F45DD
secondary
#B9DEA0
accent
#EC3C84
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F45DD

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

Preview Lab → · Contrast checker → · Palette generator →

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