#7D4EC8#7D4EC8

#7D4EC8 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.9% C 0.182 H 297.7°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7D4EC8
RGBrgb(125, 78, 200)
HSLhsl(263, 53%, 55%)
HSVhsv(263, 61%, 78%)
CMYKcmyk(37.5%, 61%, 0%, 21.6%)
CIE-LABlab(44.20, 45.65, -56.63)
CIE-LCHlch(44.20, 72.74, 308.88°)
OKLaboklab(53.85% 0.0846 -0.161)
OKLCHoklch(53.85% 0.182 297.7)
XYZxyz(21.6045, 13.9786, 56.1923)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4EC8 #99C84E
analogous
#4E5CC8 #7D4EC8 #BA4EC8
triadic
#7D4EC8 #C87D4E #4EC87D
tetradic
#7D4EC8 #C84E5C #99C84E #4EC8BA
square
#7D4EC8 #C84E5C #99C84E #4EC8BA
split-complementary
#7D4EC8 #C8BA4E #5CC84E
monochromatic
#442577 #5F33A5 #7D4EC8 #9F7DD7 #C2ABE5

Accessibility & contrast

On white

5.53
#7D4EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7D4EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4EC8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4EC8#FFFFFF#000000##FFFFFF
##7D4EC81.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#1867C5
Tritanopia (blue-blind)
#6B6984
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7d4ec8;
/* rgb */ color: rgb(125, 78, 200);
/* oklch */ color: oklch(53.9% 0.182 297.7);
Tailwind
colors: {
  custom: {
    50: '#a782d9',
    500: '#7d4ec8',
    950: '#000000',
  },
}
SCSS
$custom: #7d4ec8;
$custom-light: #a782d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4ec8",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 263.115,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53852,
    "c": 0.18191,
    "h": 297.7
  },
  "luminance": 0.13979
}

Semantic roles & 50–950 ramp

primary
#7D4EC8
secondary
#BFD39F
accent
#DC4CA4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7D4EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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