#7E45BF#7E45BF

#7E45BF is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.0% C 0.184 H 301.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#7E45BF
RGBrgb(126, 69, 191)
HSLhsl(268, 49%, 51%)
HSVhsv(268, 64%, 75%)
CMYKcmyk(34%, 63.9%, 0%, 25.1%)
CIE-LABlab(41.93, 48.37, -55.06)
CIE-LCHlch(41.93, 73.29, 311.30°)
OKLaboklab(52.03% 0.097 -0.1564)
OKLCHoklch(52.03% 0.184 301.8)
XYZxyz(20.1341, 12.4534, 50.6231)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45BF #86BF45
analogous
#4549BF #7E45BF #BB45BF
triadic
#7E45BF #BF7E45 #45BF7E
tetradic
#7E45BF #BF4549 #86BF45 #45BFBB
square
#7E45BF #BF4549 #86BF45 #45BFBB
split-complementary
#7E45BF #BFBB45 #49BF45
monochromatic
#432366 #603394 #7E45BF #9E73CF #BDA0DE

Accessibility & contrast

On white

6.02
#7E45BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7E45BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45BF
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45BF#FFFFFF#000000##FFFFFF
##7E45BF1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#1862BC
Tritanopia (blue-blind)
#71607C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e45bf;
/* rgb */ color: rgb(126, 69, 191);
/* oklch */ color: oklch(52.0% 0.184 301.8);
Tailwind
colors: {
  custom: {
    50: '#a87cd3',
    500: '#7e45bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e45bf;
$custom-light: #a87cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45bf",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 268.033,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52033,
    "c": 0.18402,
    "h": 301.8
  },
  "luminance": 0.12453
}

Semantic roles & 50–950 ramp

primary
#7E45BF
secondary
#B2CB95
accent
#D84F98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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