#7D3EB8#7D3EB8

#7D3EB8 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.5% C 0.185 H 304.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#7D3EB8
RGBrgb(125, 62, 184)
HSLhsl(271, 50%, 48%)
HSVhsv(271, 66%, 72%)
CMYKcmyk(32.1%, 66.3%, 0%, 27.8%)
CIE-LABlab(40.02, 49.99, -54.04)
CIE-LCHlch(40.02, 73.62, 312.77°)
OKLaboklab(50.48% 0.1043 -0.1534)
OKLCHoklch(50.48% 0.185 304.2)
XYZxyz(18.8298, 11.2660, 46.5207)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D3EB8 #79B83E
analogous
#403EB8 #7D3EB8 #B83EB6
triadic
#7D3EB8 #B87D3E #3EB87D
tetradic
#7D3EB8 #B8403E #79B83E #3EB6B8
square
#7D3EB8 #B8403E #79B83E #3EB6B8
split-complementary
#7D3EB8 #B6B83E #3EB840
monochromatic
#3F1F5C #5E2F8A #7D3EB8 #9B67CC #B995DB

Accessibility & contrast

On white

6.46
#7D3EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7D3EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D3EB8
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D3EB8#FFFFFF#000000##FFFFFF
##7D3EB81.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#155EB5
Tritanopia (blue-blind)
#725976
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7d3eb8;
/* rgb */ color: rgb(125, 62, 184);
/* oklch */ color: oklch(50.5% 0.185 304.2);
Tailwind
colors: {
  custom: {
    50: '#a777ce',
    500: '#7d3eb8',
    950: '#000000',
  },
}
SCSS
$custom: #7d3eb8;
$custom-light: #a777ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d3eb8",
  "rgb": {
    "r": 125,
    "g": 62,
    "b": 184
  },
  "hsl": {
    "h": 270.984,
    "s": 49.593,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50482,
    "c": 0.18545,
    "h": 304.2
  },
  "luminance": 0.11266
}

Semantic roles & 50–950 ramp

primary
#7D3EB8
secondary
#A8C78B
accent
#D94F92
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7D3EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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