#7E45D1#7E45D1

#7E45D1 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.4% C 0.204 H 297.7°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7E45D1
RGBrgb(126, 69, 209)
HSLhsl(264, 60%, 55%)
HSVhsv(264, 67%, 82%)
CMYKcmyk(39.7%, 67%, 0%, 18%)
CIE-LABlab(43.20, 52.91, -63.43)
CIE-LCHlch(43.20, 82.60, 309.83°)
OKLaboklab(53.36% 0.0951 -0.181)
OKLCHoklch(53.36% 0.204 297.7)
XYZxyz(22.2380, 13.2950, 61.7038)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45D1 #98D145
analogous
#4552D1 #7E45D1 #C445D1
triadic
#7E45D1 #D17E45 #45D17E
tetradic
#7E45D1 #D14552 #98D145 #45D1C4
square
#7E45D1 #D14552 #98D145 #45D1C4
split-complementary
#7E45D1 #D1C445 #52D145
monochromatic
#451F7D #602BAE #7E45D1 #A076DD #C2A7E9

Accessibility & contrast

On white

5.74
#7E45D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#7E45D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45D1
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45D1#FFFFFF#000000##FFFFFF
##7E45D11.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0064CE
Tritanopia (blue-blind)
#6A6685
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e45d1;
/* rgb */ color: rgb(126, 69, 209);
/* oklch */ color: oklch(53.4% 0.204 297.7);
Tailwind
colors: {
  custom: {
    50: '#a97ce0',
    500: '#7e45d1',
    950: '#000000',
  },
}
SCSS
$custom: #7e45d1;
$custom-light: #a97ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45d1",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 264.429,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53356,
    "c": 0.20443,
    "h": 297.7
  },
  "luminance": 0.13295
}

Semantic roles & 50–950 ramp

primary
#7E45D1
secondary
#BED79B
accent
#E344A3
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7E45D1

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

Preview Lab → · Contrast checker → · Palette generator →

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