#9F45E2#9F45E2

#9F45E2 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.3% C 0.229 H 306.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9F45E2
RGBrgb(159, 69, 226)
HSLhsl(274, 73%, 58%)
HSVhsv(274, 69%, 89%)
CMYKcmyk(29.6%, 69.5%, 0%, 11.4%)
CIE-LABlab(48.41, 63.38, -64.52)
CIE-LCHlch(48.41, 90.44, 314.49°)
OKLaboklab(58.33% 0.137 -0.1831)
OKLCHoklch(58.33% 0.229 306.8)
XYZxyz(30.1507, 17.1185, 73.6526)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F45E2 #88E245
analogous
#5045E2 #9F45E2 #E245D6
triadic
#9F45E2 #E29F45 #45E29F
tetradic
#9F45E2 #E25045 #88E245 #45D6E2
square
#9F45E2 #E25045 #88E245 #45D6E2
split-complementary
#9F45E2 #D6E245 #45E250
monochromatic
#601795 #8120CA #9F45E2 #BA7AEA #D6AFF3

Accessibility & contrast

On white

4.75
#9F45E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#9F45E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F45E2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F45E2#FFFFFF#000000##FFFFFF
##9F45E21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#1074DF
Tritanopia (blue-blind)
#94698F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f45e2;
/* rgb */ color: rgb(159, 69, 226);
/* oklch */ color: oklch(58.3% 0.229 306.8);
Tailwind
colors: {
  custom: {
    50: '#c080ec',
    500: '#9f45e2',
    950: '#000000',
  },
}
SCSS
$custom: #9f45e2;
$custom-light: #c080ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9f45e2",
  "rgb": {
    "r": 159,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 274.395,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.58331,
    "c": 0.22866,
    "h": 306.8
  },
  "luminance": 0.17118
}

Semantic roles & 50–950 ramp

primary
#9F45E2
secondary
#BDE1A2
accent
#F03886
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F45E2

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

Preview Lab → · Contrast checker → · Palette generator →

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