#7E45AB#7E45AB

#7E45AB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.7% C 0.161 H 307.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7E45AB
RGBrgb(126, 69, 171)
HSLhsl(274, 43%, 47%)
HSVhsv(274, 60%, 67%)
CMYKcmyk(26.3%, 59.6%, 0%, 32.9%)
CIE-LABlab(40.63, 43.49, -45.39)
CIE-LCHlch(40.63, 62.86, 313.78°)
OKLaboklab(50.67% 0.0978 -0.128)
OKLCHoklch(50.67% 0.161 307.4)
XYZxyz(18.0815, 11.6324, 39.8129)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45AB #72AB45
analogous
#4B45AB #7E45AB #AB45A5
triadic
#7E45AB #AB7E45 #45AB7E
tetradic
#7E45AB #AB4B45 #72AB45 #45A5AB
square
#7E45AB #AB4B45 #72AB45 #45A5AB
split-complementary
#7E45AB #A5AB45 #45AB4B
monochromatic
#3E2254 #5E337F #7E45AB #9C6AC3 #B996D5

Accessibility & contrast

On white

6.31
#7E45AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7E45AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45AB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45AB#FFFFFF#000000##FFFFFF
##7E45AB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5EAE
Deuteranopia (green-blind)
#3560A9
Tritanopia (blue-blind)
#775971
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e45ab;
/* rgb */ color: rgb(126, 69, 171);
/* oklch */ color: oklch(50.7% 0.161 307.4);
Tailwind
colors: {
  custom: {
    50: '#a67bc4',
    500: '#7e45ab',
    950: '#000000',
  },
}
SCSS
$custom: #7e45ab;
$custom-light: #a67bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45ab",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 273.529,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50672,
    "c": 0.16104,
    "h": 307.4
  },
  "luminance": 0.11632
}

Semantic roles & 50–950 ramp

primary
#7E45AB
secondary
#A3C08B
accent
#D2568D
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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