#7E45BD#7E45BD

#7E45BD is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.182 H 302.3°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7E45BD
RGBrgb(126, 69, 189)
HSLhsl(269, 48%, 51%)
HSVhsv(269, 63%, 74%)
CMYKcmyk(33.3%, 63.5%, 0%, 25.9%)
CIE-LABlab(41.79, 47.87, -54.11)
CIE-LCHlch(41.79, 72.25, 311.50°)
OKLaboklab(51.89% 0.0971 -0.1536)
OKLCHoklch(51.89% 0.182 302.3)
XYZxyz(19.9155, 12.3660, 49.4719)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45BD #84BD45
analogous
#4548BD #7E45BD #BA45BD
triadic
#7E45BD #BD7E45 #45BD7E
tetradic
#7E45BD #BD4548 #84BD45 #45BDBA
square
#7E45BD #BD4548 #84BD45 #45BDBA
split-complementary
#7E45BD #BDBA45 #48BD45
monochromatic
#422464 #603491 #7E45BD #9D72CD #BD9FDD

Accessibility & contrast

On white

6.05
#7E45BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7E45BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45BD
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45BD#FFFFFF#000000##FFFFFF
##7E45BD1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#1C62BA
Tritanopia (blue-blind)
#715F7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e45bd;
/* rgb */ color: rgb(126, 69, 189);
/* oklch */ color: oklch(51.9% 0.182 302.3);
Tailwind
colors: {
  custom: {
    50: '#a87cd2',
    500: '#7e45bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e45bd;
$custom-light: #a87cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45bd",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 268.5,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51892,
    "c": 0.18173,
    "h": 302.3
  },
  "luminance": 0.12366
}

Semantic roles & 50–950 ramp

primary
#7E45BD
secondary
#B0CA94
accent
#D75197
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E45BD

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

Preview Lab → · Contrast checker → · Palette generator →

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