#7E45E6#7E45E6

#7E45E6 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.0% C 0.228 H 293.7°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7E45E6
RGBrgb(126, 69, 230)
HSLhsl(261, 76%, 59%)
HSVhsv(261, 70%, 90%)
CMYKcmyk(45.2%, 70%, 0%, 9.8%)
CIE-LABlab(44.81, 58.31, -72.81)
CIE-LCHlch(44.81, 93.28, 308.69°)
OKLaboklab(55% 0.0917 -0.2085)
OKLCHoklch(55% 0.228 293.7)
XYZxyz(25.0113, 14.4043, 76.3101)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45E6 #ADE645
analogous
#455CE6 #7E45E6 #CE45E6
triadic
#7E45E6 #E67E45 #45E67E
tetradic
#7E45E6 #E6455C #ADE645 #45E6CE
square
#7E45E6 #E6455C #ADE645 #45E6CE
split-complementary
#7E45E6 #E6CE45 #5CE645
monochromatic
#45159C #5C1CD2 #7E45E6 #A37BED #C9B1F5

Accessibility & contrast

On white

5.41
#7E45E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7E45E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45E6
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45E6#FFFFFF#000000##FFFFFF
##7E45E61.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEB
Deuteranopia (green-blind)
#0067E3
Tritanopia (blue-blind)
#606E91
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e45e6;
/* rgb */ color: rgb(126, 69, 230);
/* oklch */ color: oklch(55.0% 0.228 293.7);
Tailwind
colors: {
  custom: {
    50: '#ac7def',
    500: '#7e45e6',
    950: '#000000',
  },
}
SCSS
$custom: #7e45e6;
$custom-light: #ac7def;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45e6",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 261.242,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55,
    "c": 0.22781,
    "h": 293.7
  },
  "luminance": 0.14405
}

Semantic roles & 50–950 ramp

primary
#7E45E6
secondary
#CDE3A4
accent
#F335B0
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7E45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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