#9A45DC#9A45DC

#9A45DC is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.3% C 0.221 H 306.4°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9A45DC
RGBrgb(154, 69, 220)
HSLhsl(274, 68%, 57%)
HSVhsv(274, 69%, 86%)
CMYKcmyk(30%, 68.6%, 0%, 13.7%)
CIE-LABlab(47.36, 61.06, -62.84)
CIE-LCHlch(47.36, 87.62, 314.18°)
OKLaboklab(57.31% 0.1313 -0.1783)
OKLCHoklch(57.31% 0.221 306.4)
XYZxyz(28.3700, 16.2939, 69.3467)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A45DC #87DC45
analogous
#4F45DC #9A45DC #DC45D3
triadic
#9A45DC #DC9A45 #45DC9A
tetradic
#9A45DC #DC4F45 #87DC45 #45D3DC
square
#9A45DC #DC4F45 #87DC45 #45D3DC
split-complementary
#9A45DC #D3DC45 #45DC4F
monochromatic
#5A1A8C #7C24C0 #9A45DC #B679E6 #D2ACEF

Accessibility & contrast

On white

4.93
#9A45DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9A45DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A45DC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A45DC#FFFFFF#000000##FFFFFF
##9A45DC1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#1471D9
Tritanopia (blue-blind)
#8F678B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9a45dc;
/* rgb */ color: rgb(154, 69, 220);
/* oklch */ color: oklch(57.3% 0.221 306.4);
Tailwind
colors: {
  custom: {
    50: '#bd7fe8',
    500: '#9a45dc',
    950: '#000000',
  },
}
SCSS
$custom: #9a45dc;
$custom-light: #bd7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#9a45dc",
  "rgb": {
    "r": 154,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 273.775,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57314,
    "c": 0.22141,
    "h": 306.4
  },
  "luminance": 0.16294
}

Semantic roles & 50–950 ramp

primary
#9A45DC
secondary
#BBDDA0
accent
#EB3D89
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A45DC

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

Preview Lab → · Contrast checker → · Palette generator →

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