#7A45BB#7A45BB

#7A45BB is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.3% C 0.179 H 300.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7A45BB
RGBrgb(122, 69, 187)
HSLhsl(267, 46%, 50%)
HSVhsv(267, 63%, 73%)
CMYKcmyk(34.8%, 63.1%, 0%, 26.7%)
CIE-LABlab(41.19, 46.48, -53.94)
CIE-LCHlch(41.19, 71.21, 310.75°)
OKLaboklab(51.31% 0.0919 -0.1532)
OKLCHoklch(51.31% 0.179 300.9)
XYZxyz(19.1217, 11.9816, 48.3093)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A45BB #86BB45
analogous
#454BBB #7A45BB #B545BB
triadic
#7A45BB #BB7A45 #45BB7A
tetradic
#7A45BB #BB454B #86BB45 #45BBB5
square
#7A45BB #BB454B #86BB45 #45BBB5
split-complementary
#7A45BB #BBB545 #4BBB45
monochromatic
#402462 #5D348F #7A45BB #9A72CB #BA9FDC

Accessibility & contrast

On white

6.18
#7A45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7A45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A45BB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A45BB#FFFFFF#000000##FFFFFF
##7A45BB1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#1860B8
Tritanopia (blue-blind)
#6C5F7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a45bb;
/* rgb */ color: rgb(122, 69, 187);
/* oklch */ color: oklch(51.3% 0.179 300.9);
Tailwind
colors: {
  custom: {
    50: '#a57cd0',
    500: '#7a45bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a45bb;
$custom-light: #a57cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a45bb",
  "rgb": {
    "r": 122,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 266.949,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51306,
    "c": 0.17865,
    "h": 300.9
  },
  "luminance": 0.11982
}

Semantic roles & 50–950 ramp

primary
#7A45BB
secondary
#B1C894
accent
#D6529B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7A45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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