#7A45BA#7A45BA

#7A45BA is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.2% C 0.177 H 301.2°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7A45BA
RGBrgb(122, 69, 186)
HSLhsl(267, 46%, 50%)
HSVhsv(267, 63%, 73%)
CMYKcmyk(34.4%, 62.9%, 0%, 27.1%)
CIE-LABlab(41.12, 46.23, -53.47)
CIE-LCHlch(41.12, 70.68, 310.85°)
OKLaboklab(51.24% 0.0919 -0.1518)
OKLCHoklch(51.24% 0.177 301.2)
XYZxyz(19.0150, 11.9389, 47.7475)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A45BA #85BA45
analogous
#454BBA #7A45BA #B445BA
triadic
#7A45BA #BA7A45 #45BA7A
tetradic
#7A45BA #BA454B #85BA45 #45BAB4
square
#7A45BA #BA454B #85BA45 #45BAB4
split-complementary
#7A45BA #BAB445 #4BBA45
monochromatic
#3F2461 #5D348D #7A45BA #9A72CB #BA9EDB

Accessibility & contrast

On white

6.20
#7A45BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7A45BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A45BA
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A45BA#FFFFFF#000000##FFFFFF
##7A45BA1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#1B60B7
Tritanopia (blue-blind)
#6D5E79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a45ba;
/* rgb */ color: rgb(122, 69, 186);
/* oklch */ color: oklch(51.2% 0.177 301.2);
Tailwind
colors: {
  custom: {
    50: '#a57bcf',
    500: '#7a45ba',
    950: '#000000',
  },
}
SCSS
$custom: #7a45ba;
$custom-light: #a57bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a45ba",
  "rgb": {
    "r": 122,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 267.179,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.51235,
    "c": 0.17748,
    "h": 301.2
  },
  "luminance": 0.11939
}

Semantic roles & 50–950 ramp

primary
#7A45BA
secondary
#B0C893
accent
#D6529A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7A45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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