#9A45DB#9A45DB

#9A45DB is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.2% C 0.220 H 306.6°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#9A45DB
RGBrgb(154, 69, 219)
HSLhsl(274, 68%, 56%)
HSVhsv(274, 68%, 86%)
CMYKcmyk(29.7%, 68.5%, 0%, 14.1%)
CIE-LABlab(47.29, 60.83, -62.38)
CIE-LCHlch(47.29, 87.13, 314.28°)
OKLaboklab(57.24% 0.1314 -0.1769)
OKLCHoklch(57.24% 0.22 306.6)
XYZxyz(28.2380, 16.2410, 68.6513)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A45DB #86DB45
analogous
#4F45DB #9A45DB #DB45D1
triadic
#9A45DB #DB9A45 #45DB9A
tetradic
#9A45DB #DB4F45 #86DB45 #45D1DB
square
#9A45DB #DB4F45 #86DB45 #45D1DB
split-complementary
#9A45DB #D1DB45 #45DB4F
monochromatic
#5A1B8B #7C25BE #9A45DB #B678E5 #D2ACEF

Accessibility & contrast

On white

4.94
#9A45DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#9A45DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A45DB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A45DB#FFFFFF#000000##FFFFFF
##9A45DB1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#1771D8
Tritanopia (blue-blind)
#8F678B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9a45db;
/* rgb */ color: rgb(154, 69, 219);
/* oklch */ color: oklch(57.2% 0.220 306.6);
Tailwind
colors: {
  custom: {
    50: '#bd7fe7',
    500: '#9a45db',
    950: '#000000',
  },
}
SCSS
$custom: #9a45db;
$custom-light: #bd7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a45db",
  "rgb": {
    "r": 154,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 274,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57244,
    "c": 0.2204,
    "h": 306.6
  },
  "luminance": 0.16241
}

Semantic roles & 50–950 ramp

primary
#9A45DB
secondary
#BADD9F
accent
#EA3D88
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A45DB

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

Preview Lab → · Contrast checker → · Palette generator →

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