#7A45C5#7A45C5

#7A45C5 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.190 H 298.6°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7A45C5
RGBrgb(122, 69, 197)
HSLhsl(265, 52%, 52%)
HSVhsv(265, 65%, 77%)
CMYKcmyk(38.1%, 65%, 0%, 22.7%)
CIE-LABlab(41.88, 49.03, -58.65)
CIE-LCHlch(41.88, 76.45, 309.89°)
OKLaboklab(52.03% 0.091 -0.1671)
OKLCHoklch(52.03% 0.19 298.6)
XYZxyz(20.2297, 12.4248, 54.1449)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A45C5 #90C545
analogous
#4550C5 #7A45C5 #BA45C5
triadic
#7A45C5 #C57A45 #45C57A
tetradic
#7A45C5 #C54550 #90C545 #45C5BA
square
#7A45C5 #C54550 #90C545 #45C5BA
split-complementary
#7A45C5 #C5BA45 #50C545
monochromatic
#41226D #5D319C #7A45C5 #9B74D4 #BDA2E2

Accessibility & contrast

On white

6.03
#7A45C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7A45C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A45C5
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A45C5#FFFFFF#000000##FFFFFF
##7A45C51.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#69627F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a45c5;
/* rgb */ color: rgb(122, 69, 197);
/* oklch */ color: oklch(52.0% 0.190 298.6);
Tailwind
colors: {
  custom: {
    50: '#a67cd7',
    500: '#7a45c5',
    950: '#000000',
  },
}
SCSS
$custom: #7a45c5;
$custom-light: #a67cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a45c5",
  "rgb": {
    "r": 122,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 264.844,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5203,
    "c": 0.19025,
    "h": 298.6
  },
  "luminance": 0.12425
}

Semantic roles & 50–950 ramp

primary
#7A45C5
secondary
#B8CF97
accent
#DC4CA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7A45C5

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

Preview Lab → · Contrast checker → · Palette generator →

#7A45C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva