#7E45CC#7E45CC

#7E45CC is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.0% C 0.199 H 298.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7E45CC
RGBrgb(126, 69, 204)
HSLhsl(265, 57%, 54%)
HSVhsv(265, 66%, 80%)
CMYKcmyk(38.2%, 66.2%, 0%, 20%)
CIE-LABlab(42.84, 51.64, -61.14)
CIE-LCHlch(42.84, 80.03, 310.18°)
OKLaboklab(52.98% 0.0957 -0.1742)
OKLCHoklch(52.98% 0.199 298.8)
XYZxyz(21.6287, 13.0512, 58.4947)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45CC #93CC45
analogous
#454FCC #7E45CC #C145CC
triadic
#7E45CC #CC7E45 #45CC7E
tetradic
#7E45CC #CC454F #93CC45 #45CCC1
square
#7E45CC #CC454F #93CC45 #45CCC1
split-complementary
#7E45CC #CCC145 #4FCC45
monochromatic
#452076 #612EA6 #7E45CC #9F75D9 #C1A5E6

Accessibility & contrast

On white

5.82
#7E45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7E45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45CC
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45CC#FFFFFF#000000##FFFFFF
##7E45CC1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#6C6483
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e45cc;
/* rgb */ color: rgb(126, 69, 204);
/* oklch */ color: oklch(53.0% 0.199 298.8);
Tailwind
colors: {
  custom: {
    50: '#a97cdc',
    500: '#7e45cc',
    950: '#000000',
  },
}
SCSS
$custom: #7e45cc;
$custom-light: #a97cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45cc",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 265.333,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5298,
    "c": 0.19879,
    "h": 298.8
  },
  "luminance": 0.13051
}

Semantic roles & 50–950 ramp

primary
#7E45CC
secondary
#BBD399
accent
#E048A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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