#7D45BA#7D45BA

#7D45BA is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.6% C 0.178 H 302.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7D45BA
RGBrgb(125, 69, 186)
HSLhsl(269, 46%, 50%)
HSVhsv(269, 63%, 73%)
CMYKcmyk(32.8%, 62.9%, 0%, 27.1%)
CIE-LABlab(41.47, 46.90, -52.88)
CIE-LCHlch(41.47, 70.68, 311.57°)
OKLaboklab(51.57% 0.096 -0.15)
OKLCHoklch(51.57% 0.178 302.6)
XYZxyz(19.4464, 12.1614, 47.7677)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45BA #82BA45
analogous
#4548BA #7D45BA #B745BA
triadic
#7D45BA #BA7D45 #45BA7D
tetradic
#7D45BA #BA4548 #82BA45 #45BAB7
square
#7D45BA #BA4548 #82BA45 #45BAB7
split-complementary
#7D45BA #BAB745 #48BA45
monochromatic
#412461 #5F348D #7D45BA #9C72CB #BB9EDB

Accessibility & contrast

On white

6.12
#7D45BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7D45BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45BA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45BA#FFFFFF#000000##FFFFFF
##7D45BA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#2061B7
Tritanopia (blue-blind)
#715E79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d45ba;
/* rgb */ color: rgb(125, 69, 186);
/* oklch */ color: oklch(51.6% 0.178 302.6);
Tailwind
colors: {
  custom: {
    50: '#a77ccf',
    500: '#7d45ba',
    950: '#000000',
  },
}
SCSS
$custom: #7d45ba;
$custom-light: #a77ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45ba",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 268.718,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.51569,
    "c": 0.17808,
    "h": 302.6
  },
  "luminance": 0.12161
}

Semantic roles & 50–950 ramp

primary
#7D45BA
secondary
#AFC893
accent
#D65297
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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