#7E49BA#7E49BA

#7E49BA is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.3% C 0.173 H 302.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7E49BA
RGBrgb(126, 73, 186)
HSLhsl(268, 45%, 51%)
HSVhsv(268, 61%, 73%)
CMYKcmyk(32.3%, 60.8%, 0%, 27.1%)
CIE-LABlab(42.38, 45.01, -51.41)
CIE-LCHlch(42.38, 68.33, 311.20°)
OKLaboklab(52.25% 0.0925 -0.1457)
OKLCHoklch(52.25% 0.173 302.4)
XYZxyz(19.8476, 12.7459, 47.8594)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E49BA #85BA49
analogous
#494CBA #7E49BA #B749BA
triadic
#7E49BA #BA7E49 #49BA7E
tetradic
#7E49BA #BA494C #85BA49 #49BAB7
square
#7E49BA #BA494C #85BA49 #49BAB7
split-complementary
#7E49BA #BAB749 #4CBA49
monochromatic
#422663 #60368F #7E49BA #9D75CB #BDA2DC

Accessibility & contrast

On white

5.92
#7E49BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7E49BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E49BA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E49BA#FFFFFF#000000##FFFFFF
##7E49BA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0463BE
Deuteranopia (green-blind)
#2964B7
Tritanopia (blue-blind)
#72607A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e49ba;
/* rgb */ color: rgb(126, 73, 186);
/* oklch */ color: oklch(52.3% 0.173 302.4);
Tailwind
colors: {
  custom: {
    50: '#a77ecf',
    500: '#7e49ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e49ba;
$custom-light: #a77ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e49ba",
  "rgb": {
    "r": 126,
    "g": 73,
    "b": 186
  },
  "hsl": {
    "h": 268.142,
    "s": 45.02,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52254,
    "c": 0.17256,
    "h": 302.4
  },
  "luminance": 0.12746
}

Semantic roles & 50–950 ramp

primary
#7E49BA
secondary
#B1C896
accent
#D55398
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E49BA

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

Preview Lab → · Contrast checker → · Palette generator →

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