#7E45BB#7E45BB

#7E45BB is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.179 H 302.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7E45BB
RGBrgb(126, 69, 187)
HSLhsl(269, 46%, 50%)
HSVhsv(269, 63%, 73%)
CMYKcmyk(32.6%, 63.1%, 0%, 26.7%)
CIE-LABlab(41.66, 47.38, -53.16)
CIE-LCHlch(41.66, 71.21, 311.71°)
OKLaboklab(51.75% 0.0973 -0.1508)
OKLCHoklch(51.75% 0.179 302.8)
XYZxyz(19.6999, 12.2797, 48.3364)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45BB #82BB45
analogous
#4547BB #7E45BB #B945BB
triadic
#7E45BB #BB7E45 #45BB7E
tetradic
#7E45BB #BB4547 #82BB45 #45BBB9
square
#7E45BB #BB4547 #82BB45 #45BBB9
split-complementary
#7E45BB #BBB945 #47BB45
monochromatic
#422462 #60348F #7E45BB #9D72CB #BC9FDC

Accessibility & contrast

On white

6.08
#7E45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7E45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45BB
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45BB#FFFFFF#000000##FFFFFF
##7E45BB1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#2062B8
Tritanopia (blue-blind)
#725E7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e45bb;
/* rgb */ color: rgb(126, 69, 187);
/* oklch */ color: oklch(51.8% 0.179 302.8);
Tailwind
colors: {
  custom: {
    50: '#a87cd0',
    500: '#7e45bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e45bb;
$custom-light: #a87cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45bb",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 268.983,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51752,
    "c": 0.17944,
    "h": 302.8
  },
  "luminance": 0.1228
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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