#7E45A2#7E45A2

#7E45A2 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.1% C 0.151 H 310.4°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7E45A2
RGBrgb(126, 69, 162)
HSLhsl(277, 40%, 45%)
HSVhsv(277, 57%, 64%)
CMYKcmyk(22.2%, 57.4%, 0%, 36.5%)
CIE-LABlab(40.08, 41.37, -40.89)
CIE-LCHlch(40.08, 58.17, 315.33°)
OKLaboklab(50.1% 0.0976 -0.1148)
OKLCHoklch(50.1% 0.151 310.4)
XYZxyz(17.2527, 11.3008, 35.4478)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45A2 #69A245
analogous
#4F45A2 #7E45A2 #A24598
triadic
#7E45A2 #A27E45 #45A27E
tetradic
#7E45A2 #A24F45 #69A245 #4598A2
square
#7E45A2 #A24F45 #69A245 #4598A2
split-complementary
#7E45A2 #98A245 #45A24F
monochromatic
#3B204C #5D3377 #7E45A2 #9C66BE #B891D0

Accessibility & contrast

On white

6.44
#7E45A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7E45A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45A2
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45A2#FFFFFF#000000##FFFFFF
##7E45A21.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#3C5FA0
Tritanopia (blue-blind)
#79566D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e45a2;
/* rgb */ color: rgb(126, 69, 162);
/* oklch */ color: oklch(50.1% 0.151 310.4);
Tailwind
colors: {
  custom: {
    50: '#a67bbe',
    500: '#7e45a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e45a2;
$custom-light: #a67bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45a2",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 276.774,
    "s": 40.26,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50099,
    "c": 0.15068,
    "h": 310.4
  },
  "luminance": 0.113
}

Semantic roles & 50–950 ramp

primary
#7E45A2
secondary
#9BBC87
accent
#D05886
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7E45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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