#9A45CA#9A45CA

#9A45CA is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.1% C 0.203 H 310.9°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9A45CA
RGBrgb(154, 69, 202)
HSLhsl(278, 56%, 53%)
HSVhsv(278, 66%, 79%)
CMYKcmyk(23.8%, 65.8%, 0%, 20.8%)
CIE-LABlab(46.17, 57.09, -54.44)
CIE-LCHlch(46.17, 78.89, 316.36°)
OKLaboklab(56.08% 0.1331 -0.1536)
OKLCHoklch(56.08% 0.203 310.9)
XYZxyz(26.1132, 15.3911, 57.4608)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A45CA #75CA45
analogous
#5745CA #9A45CA #CA45B7
triadic
#9A45CA #CA9A45 #45CA9A
tetradic
#9A45CA #CA5745 #75CA45 #45B7CA
square
#9A45CA #CA5745 #75CA45 #45B7CA
split-complementary
#9A45CA #B7CA45 #45CA57
monochromatic
#562174 #792FA3 #9A45CA #B475D8 #CEA4E5

Accessibility & contrast

On white

5.15
#9A45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9A45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A45CA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A45CA#FFFFFF#000000##FFFFFF
##9A45CA1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#356FC7
Tritanopia (blue-blind)
#946082
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9a45ca;
/* rgb */ color: rgb(154, 69, 202);
/* oklch */ color: oklch(56.1% 0.203 310.9);
Tailwind
colors: {
  custom: {
    50: '#bc7edb',
    500: '#9a45ca',
    950: '#000000',
  },
}
SCSS
$custom: #9a45ca;
$custom-light: #bc7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a45ca",
  "rgb": {
    "r": 154,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 278.346,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56081,
    "c": 0.20325,
    "h": 310.9
  },
  "luminance": 0.15391
}

Semantic roles & 50–950 ramp

primary
#9A45CA
secondary
#ADD299
accent
#DF497F
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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