#7E4ABC#7E4ABC

#7E4ABC is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.5% C 0.173 H 301.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7E4ABC
RGBrgb(126, 74, 188)
HSLhsl(267, 46%, 51%)
HSVhsv(267, 61%, 74%)
CMYKcmyk(33%, 60.6%, 0%, 26.3%)
CIE-LABlab(42.71, 44.97, -52.05)
CIE-LCHlch(42.71, 68.79, 310.83°)
OKLaboklab(52.54% 0.0912 -0.1475)
OKLCHoklch(52.54% 0.173 301.7)
XYZxyz(20.1279, 12.9640, 49.0091)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4ABC #88BC4A
analogous
#4A4FBC #7E4ABC #B74ABC
triadic
#7E4ABC #BC7E4A #4ABC7E
tetradic
#7E4ABC #BC4A4F #88BC4A #4ABCB7
square
#7E4ABC #BC4A4F #88BC4A #4ABCB7
split-complementary
#7E4ABC #BCB74A #4FBC4A
monochromatic
#432666 #603693 #7E4ABC #9E77CD #BEA3DD

Accessibility & contrast

On white

5.85
#7E4ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7E4ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4ABC
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4ABC#FFFFFF#000000##FFFFFF
##7E4ABC1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0364C0
Deuteranopia (green-blind)
#2864B9
Tritanopia (blue-blind)
#72627C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4abc;
/* rgb */ color: rgb(126, 74, 188);
/* oklch */ color: oklch(52.5% 0.173 301.7);
Tailwind
colors: {
  custom: {
    50: '#a77fd1',
    500: '#7e4abc',
    950: '#000000',
  },
}
SCSS
$custom: #7e4abc;
$custom-light: #a77fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4abc",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 267.368,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52536,
    "c": 0.17346,
    "h": 301.7
  },
  "luminance": 0.12964
}

Semantic roles & 50–950 ramp

primary
#7E4ABC
secondary
#B3CA98
accent
#D6529A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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