#7E45BE#7E45BE

#7E45BE is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.183 H 302.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7E45BE
RGBrgb(126, 69, 190)
HSLhsl(268, 48%, 51%)
HSVhsv(268, 64%, 75%)
CMYKcmyk(33.7%, 63.7%, 0%, 25.5%)
CIE-LABlab(41.86, 48.12, -54.59)
CIE-LCHlch(41.86, 72.77, 311.40°)
OKLaboklab(51.96% 0.0971 -0.155)
OKLCHoklch(51.96% 0.183 302.1)
XYZxyz(20.0244, 12.4095, 50.0455)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45BE #85BE45
analogous
#4548BE #7E45BE #BA45BE
triadic
#7E45BE #BE7E45 #45BE7E
tetradic
#7E45BE #BE4548 #85BE45 #45BEBA
square
#7E45BE #BE4548 #85BE45 #45BEBA
split-complementary
#7E45BE #BEBA45 #48BE45
monochromatic
#422365 #603393 #7E45BE #9D72CE #BDA0DE

Accessibility & contrast

On white

6.03
#7E45BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7E45BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45BE
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45BE#FFFFFF#000000##FFFFFF
##7E45BE1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e45be;
/* rgb */ color: rgb(126, 69, 190);
/* oklch */ color: oklch(52.0% 0.183 302.1);
Tailwind
colors: {
  custom: {
    50: '#a87cd2',
    500: '#7e45be',
    950: '#000000',
  },
}
SCSS
$custom: #7e45be;
$custom-light: #a87cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45be",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 190
  },
  "hsl": {
    "h": 268.264,
    "s": 48.207,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51962,
    "c": 0.18286,
    "h": 302.1
  },
  "luminance": 0.1241
}

Semantic roles & 50–950 ramp

primary
#7E45BE
secondary
#B1CA95
accent
#D85098
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E45BE

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

Preview Lab → · Contrast checker → · Palette generator →

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