#9D45AF#9D45AF

#9D45AF is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.8% C 0.178 H 320.5°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9D45AF
RGBrgb(157, 69, 175)
HSLhsl(290, 43%, 48%)
HSVhsv(290, 61%, 69%)
CMYKcmyk(10.3%, 60.6%, 0%, 31.4%)
CIE-LABlab(44.97, 52.21, -40.58)
CIE-LCHlch(44.97, 66.13, 322.14°)
OKLaboklab(54.79% 0.1372 -0.113)
OKLCHoklch(54.79% 0.178 320.5)
XYZxyz(23.7697, 14.5206, 42.0998)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D45AF #57AF45
analogous
#6845AF #9D45AF #AF458C
triadic
#9D45AF #AF9D45 #45AF9D
tetradic
#9D45AF #AF6845 #57AF45 #458CAF
square
#9D45AF #AF6845 #57AF45 #458CAF
split-complementary
#9D45AF #8CAF45 #45AF68
monochromatic
#4E2257 #763483 #9D45AF #B66CC5 #CC98D6

Accessibility & contrast

On white

5.38
#9D45AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9D45AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D45AF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D45AF#FFFFFF#000000##FFFFFF
##9D45AF1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D64B2
Deuteranopia (green-blind)
#4F6EAC
Tritanopia (blue-blind)
#9E5673
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9d45af;
/* rgb */ color: rgb(157, 69, 175);
/* oklch */ color: oklch(54.8% 0.178 320.5);
Tailwind
colors: {
  custom: {
    50: '#bd7ec7',
    500: '#9d45af',
    950: '#000000',
  },
}
SCSS
$custom: #9d45af;
$custom-light: #bd7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d45af",
  "rgb": {
    "r": 157,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 289.811,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54787,
    "c": 0.17776,
    "h": 320.5
  },
  "luminance": 0.14519
}

Semantic roles & 50–950 ramp

primary
#9D45AF
secondary
#96C28D
accent
#D3556A
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9D45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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