#7E48AF#7E48AF

#7E48AF is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.4% C 0.161 H 305.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7E48AF
RGBrgb(126, 72, 175)
HSLhsl(271, 42%, 48%)
HSVhsv(271, 59%, 69%)
CMYKcmyk(28%, 58.9%, 0%, 31.4%)
CIE-LABlab(41.48, 42.84, -46.39)
CIE-LCHlch(41.48, 63.14, 312.72°)
OKLaboklab(51.37% 0.0939 -0.1309)
OKLCHoklch(51.37% 0.161 305.7)
XYZxyz(18.6578, 12.1656, 41.9144)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E48AF #79AF48
analogous
#4A48AF #7E48AF #AF48AC
triadic
#7E48AF #AF7E48 #48AF7E
tetradic
#7E48AF #AF4A48 #79AF48 #48ACAF
square
#7E48AF #AF4A48 #79AF48 #48ACAF
split-complementary
#7E48AF #ACAF48 #48AF4A
monochromatic
#402458 #5F3684 #7E48AF #9C70C4 #BA9BD6

Accessibility & contrast

On white

6.12
#7E48AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7E48AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E48AF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E48AF#FFFFFF#000000##FFFFFF
##7E48AF1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D60B2
Deuteranopia (green-blind)
#3462AD
Tritanopia (blue-blind)
#765C74
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e48af;
/* rgb */ color: rgb(126, 72, 175);
/* oklch */ color: oklch(51.4% 0.161 305.7);
Tailwind
colors: {
  custom: {
    50: '#a77dc7',
    500: '#7e48af',
    950: '#000000',
  },
}
SCSS
$custom: #7e48af;
$custom-light: #a77dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e48af",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 175
  },
  "hsl": {
    "h": 271.456,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51374,
    "c": 0.16112,
    "h": 305.7
  },
  "luminance": 0.12165
}

Semantic roles & 50–950 ramp

primary
#7E48AF
secondary
#A8C290
accent
#D25691
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E48AF

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

Preview Lab → · Contrast checker → · Palette generator →

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