#7A45C4#7A45C4

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

Color values

HEX#7A45C4
RGBrgb(122, 69, 196)
HSLhsl(265, 52%, 52%)
HSVhsv(265, 65%, 77%)
CMYKcmyk(37.8%, 64.8%, 0%, 23.1%)
CIE-LABlab(41.81, 48.78, -58.19)
CIE-LCHlch(41.81, 75.92, 309.97°)
OKLaboklab(51.96% 0.0911 -0.1657)
OKLCHoklch(51.96% 0.189 298.8)
XYZxyz(20.1155, 12.3791, 53.5435)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A45C4 #8FC445
analogous
#4550C4 #7A45C4 #B945C4
triadic
#7A45C4 #C47A45 #45C47A
tetradic
#7A45C4 #C44550 #8FC445 #45C4B9
square
#7A45C4 #C44550 #8FC445 #45C4B9
split-complementary
#7A45C4 #C4B945 #50C445
monochromatic
#41226C #5D319B #7A45C4 #9B73D3 #BCA2E1

Accessibility & contrast

On white

6.04
#7A45C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7A45C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A45C4
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A45C4#FFFFFF#000000##FFFFFF
##7A45C41.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0061C1
Tritanopia (blue-blind)
#69627E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a45c4;
/* rgb */ color: rgb(122, 69, 196);
/* oklch */ color: oklch(52.0% 0.189 298.8);
Tailwind
colors: {
  custom: {
    50: '#a67cd7',
    500: '#7a45c4',
    950: '#000000',
  },
}
SCSS
$custom: #7a45c4;
$custom-light: #a67cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a45c4",
  "rgb": {
    "r": 122,
    "g": 69,
    "b": 196
  },
  "hsl": {
    "h": 265.039,
    "s": 51.837,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51956,
    "c": 0.18909,
    "h": 298.8
  },
  "luminance": 0.12379
}

Semantic roles & 50–950 ramp

primary
#7A45C4
secondary
#B7CE97
accent
#DB4DA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7A45C4

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

Preview Lab → · Contrast checker → · Palette generator →

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