#7A45C9#7A45C9

#7A45C9 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.195 H 297.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7A45C9
RGBrgb(122, 69, 201)
HSLhsl(264, 55%, 53%)
HSVhsv(264, 66%, 79%)
CMYKcmyk(39.3%, 65.7%, 0%, 21.2%)
CIE-LABlab(42.17, 50.06, -60.51)
CIE-LCHlch(42.17, 78.53, 309.60°)
OKLaboklab(52.33% 0.0906 -0.1725)
OKLCHoklch(52.33% 0.195 297.7)
XYZxyz(20.6941, 12.6105, 56.5908)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A45C9 #94C945
analogous
#4552C9 #7A45C9 #BC45C9
triadic
#7A45C9 #C97A45 #45C97A
tetradic
#7A45C9 #C94552 #94C945 #45C9BC
square
#7A45C9 #C94552 #94C945 #45C9BC
split-complementary
#7A45C9 #C9BC45 #52C945
monochromatic
#422172 #5D2FA2 #7A45C9 #9C74D7 #BEA4E5

Accessibility & contrast

On white

5.96
#7A45C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7A45C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A45C9
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A45C9#FFFFFF#000000##FFFFFF
##7A45C91.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CD
Deuteranopia (green-blind)
#0062C6
Tritanopia (blue-blind)
#676481
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a45c9;
/* rgb */ color: rgb(122, 69, 201);
/* oklch */ color: oklch(52.3% 0.195 297.7);
Tailwind
colors: {
  custom: {
    50: '#a67cda',
    500: '#7a45c9',
    950: '#000000',
  },
}
SCSS
$custom: #7a45c9;
$custom-light: #a67cda;
$custom-dark: #000000;
JSON
{
  "hex": "#7a45c9",
  "rgb": {
    "r": 122,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 264.091,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52327,
    "c": 0.19486,
    "h": 297.7
  },
  "luminance": 0.12611
}

Semantic roles & 50–950 ramp

primary
#7A45C9
secondary
#BBD198
accent
#DE49A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A45C9

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

Preview Lab → · Contrast checker → · Palette generator →

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