#7E45A3#7E45A3

#7E45A3 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.2% C 0.152 H 310.0°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7E45A3
RGBrgb(126, 69, 163)
HSLhsl(276, 41%, 45%)
HSVhsv(276, 58%, 64%)
CMYKcmyk(22.7%, 57.7%, 0%, 36.1%)
CIE-LABlab(40.14, 41.60, -41.40)
CIE-LCHlch(40.14, 58.69, 315.14°)
OKLaboklab(50.16% 0.0976 -0.1163)
OKLCHoklch(50.16% 0.152 310)
XYZxyz(17.3419, 11.3365, 35.9178)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45A3 #6AA345
analogous
#4F45A3 #7E45A3 #A34599
triadic
#7E45A3 #A37E45 #45A37E
tetradic
#7E45A3 #A34F45 #6AA345 #4599A3
square
#7E45A3 #A34F45 #6AA345 #4599A3
split-complementary
#7E45A3 #99A345 #45A34F
monochromatic
#3C214D #5D3378 #7E45A3 #9C67BF #B892D1

Accessibility & contrast

On white

6.43
#7E45A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7E45A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45A3
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45A3#FFFFFF#000000##FFFFFF
##7E45A31.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265CA6
Deuteranopia (green-blind)
#3B60A1
Tritanopia (blue-blind)
#79566D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e45a3;
/* rgb */ color: rgb(126, 69, 163);
/* oklch */ color: oklch(50.2% 0.152 310.0);
Tailwind
colors: {
  custom: {
    50: '#a67bbf',
    500: '#7e45a3',
    950: '#000000',
  },
}
SCSS
$custom: #7e45a3;
$custom-light: #a67bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45a3",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 163
  },
  "hsl": {
    "h": 276.383,
    "s": 40.517,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50162,
    "c": 0.15183,
    "h": 310
  },
  "luminance": 0.11336
}

Semantic roles & 50–950 ramp

primary
#7E45A3
secondary
#9CBC87
accent
#D05787
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7E45A3

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

Preview Lab → · Contrast checker → · Palette generator →

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