#7E45D8#7E45D8

#7E45D8 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 53.9% C 0.212 H 296.3°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7E45D8
RGBrgb(126, 69, 216)
HSLhsl(263, 65%, 56%)
HSVhsv(263, 68%, 85%)
CMYKcmyk(41.7%, 68.1%, 0%, 15.3%)
CIE-LABlab(43.73, 54.70, -66.60)
CIE-LCHlch(43.73, 86.18, 309.40°)
OKLaboklab(53.89% 0.0941 -0.1903)
OKLCHoklch(53.89% 0.212 296.3)
XYZxyz(23.1237, 13.6493, 66.3687)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45D8 #9FD845
analogous
#4555D8 #7E45D8 #C745D8
triadic
#7E45D8 #D87E45 #45D87E
tetradic
#7E45D8 #D84555 #9FD845 #45D8C7
square
#7E45D8 #D84555 #9FD845 #45D8C7
split-complementary
#7E45D8 #D8C745 #55D845
monochromatic
#451C86 #5F27B9 #7E45D8 #A178E3 #C4AAED

Accessibility & contrast

On white

5.63
#7E45D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#7E45D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45D8
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45D8#FFFFFF#000000##FFFFFF
##7E45D81.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#0065D5
Tritanopia (blue-blind)
#676989
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e45d8;
/* rgb */ color: rgb(126, 69, 216);
/* oklch */ color: oklch(53.9% 0.212 296.3);
Tailwind
colors: {
  custom: {
    50: '#aa7de5',
    500: '#7e45d8',
    950: '#000000',
  },
}
SCSS
$custom: #7e45d8;
$custom-light: #aa7de5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45d8",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 263.265,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.53892,
    "c": 0.21228,
    "h": 296.3
  },
  "luminance": 0.1365
}

Semantic roles & 50–950 ramp

primary
#7E45D8
secondary
#C3DB9E
accent
#E840A7
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E45D8

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

Preview Lab → · Contrast checker → · Palette generator →

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