#7E45D4#7E45D4

#7E45D4 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.6% C 0.208 H 297.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#7E45D4
RGBrgb(126, 69, 212)
HSLhsl(264, 62%, 55%)
HSVhsv(264, 67%, 83%)
CMYKcmyk(40.6%, 67.5%, 0%, 16.9%)
CIE-LABlab(43.43, 53.67, -64.79)
CIE-LCHlch(43.43, 84.14, 309.64°)
OKLaboklab(53.58% 0.0947 -0.185)
OKLCHoklch(53.58% 0.208 297.1)
XYZxyz(22.6129, 13.4449, 63.6783)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45D4 #9BD445
analogous
#4554D4 #7E45D4 #C545D4
triadic
#7E45D4 #D47E45 #45D47E
tetradic
#7E45D4 #D44554 #9BD445 #45D4C5
square
#7E45D4 #D44554 #9BD445 #45D4C5
split-complementary
#7E45D4 #D4C545 #54D445
monochromatic
#451E81 #6029B3 #7E45D4 #A077DF #C3A8EB

Accessibility & contrast

On white

5.69
#7E45D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7E45D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45D4
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45D4#FFFFFF#000000##FFFFFF
##7E45D41.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#0065D1
Tritanopia (blue-blind)
#686787
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e45d4;
/* rgb */ color: rgb(126, 69, 212);
/* oklch */ color: oklch(53.6% 0.208 297.1);
Tailwind
colors: {
  custom: {
    50: '#aa7de2',
    500: '#7e45d4',
    950: '#000000',
  },
}
SCSS
$custom: #7e45d4;
$custom-light: #aa7de2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45d4",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 212
  },
  "hsl": {
    "h": 263.916,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53584,
    "c": 0.2078,
    "h": 297.1
  },
  "luminance": 0.13445
}

Semantic roles & 50–950 ramp

primary
#7E45D4
secondary
#C0D89C
accent
#E642A4
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #7E45D4

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

Preview Lab → · Contrast checker → · Palette generator →

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