#7E45BC#7E45BC

#7E45BC is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.181 H 302.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7E45BC
RGBrgb(126, 69, 188)
HSLhsl(269, 47%, 50%)
HSVhsv(269, 63%, 74%)
CMYKcmyk(33%, 63.3%, 0%, 26.3%)
CIE-LABlab(41.72, 47.62, -53.64)
CIE-LCHlch(41.72, 71.73, 311.60°)
OKLaboklab(51.82% 0.0972 -0.1522)
OKLCHoklch(51.82% 0.181 302.6)
XYZxyz(19.8073, 12.3227, 48.9022)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45BC #83BC45
analogous
#4547BC #7E45BC #B945BC
triadic
#7E45BC #BC7E45 #45BC7E
tetradic
#7E45BC #BC4547 #83BC45 #45BCB9
square
#7E45BC #BC4547 #83BC45 #45BCB9
split-complementary
#7E45BC #BCB945 #47BC45
monochromatic
#422463 #603490 #7E45BC #9D72CC #BC9FDC

Accessibility & contrast

On white

6.06
#7E45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7E45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45BC
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45BC#FFFFFF#000000##FFFFFF
##7E45BC1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#1E62B9
Tritanopia (blue-blind)
#725F7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e45bc;
/* rgb */ color: rgb(126, 69, 188);
/* oklch */ color: oklch(51.8% 0.181 302.6);
Tailwind
colors: {
  custom: {
    50: '#a87cd1',
    500: '#7e45bc',
    950: '#000000',
  },
}
SCSS
$custom: #7e45bc;
$custom-light: #a87cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45bc",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 268.739,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51822,
    "c": 0.18058,
    "h": 302.6
  },
  "luminance": 0.12323
}

Semantic roles & 50–950 ramp

primary
#7E45BC
secondary
#B0C994
accent
#D75197
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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