#7E45BA#7E45BA

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

Color values

HEX#7E45BA
RGBrgb(126, 69, 186)
HSLhsl(269, 46%, 50%)
HSVhsv(269, 63%, 73%)
CMYKcmyk(32.3%, 62.9%, 0%, 27.1%)
CIE-LABlab(41.59, 47.13, -52.68)
CIE-LCHlch(41.59, 70.69, 311.82°)
OKLaboklab(51.68% 0.0973 -0.1494)
OKLCHoklch(51.68% 0.178 303.1)
XYZxyz(19.5932, 12.2370, 47.7746)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45BA #81BA45
analogous
#4546BA #7E45BA #B945BA
triadic
#7E45BA #BA7E45 #45BA7E
tetradic
#7E45BA #BA4546 #81BA45 #45BAB9
square
#7E45BA #BA4546 #81BA45 #45BAB9
split-complementary
#7E45BA #BAB945 #46BA45
monochromatic
#422461 #60348D #7E45BA #9D72CB #BC9EDB

Accessibility & contrast

On white

6.09
#7E45BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7E45BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45BA
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45BA#FFFFFF#000000##FFFFFF
##7E45BA1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e45ba;
/* rgb */ color: rgb(126, 69, 186);
/* oklch */ color: oklch(51.7% 0.178 303.1);
Tailwind
colors: {
  custom: {
    50: '#a77ccf',
    500: '#7e45ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e45ba;
$custom-light: #a77ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45ba",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 269.231,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.51682,
    "c": 0.17829,
    "h": 303.1
  },
  "luminance": 0.12237
}

Semantic roles & 50–950 ramp

primary
#7E45BA
secondary
#AEC893
accent
#D65296
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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