#7E4DB8#7E4DB8

#7E4DB8 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.7% C 0.164 H 302.2°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7E4DB8
RGBrgb(126, 77, 184)
HSLhsl(267, 43%, 51%)
HSVhsv(267, 58%, 72%)
CMYKcmyk(31.5%, 58.2%, 0%, 27.8%)
CIE-LABlab(43.07, 42.33, -49.13)
CIE-LCHlch(43.07, 64.85, 310.75°)
OKLaboklab(52.72% 0.0875 -0.139)
OKLCHoklch(52.72% 0.164 302.2)
XYZxyz(19.9078, 13.2040, 46.8379)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DB8 #87B84D
analogous
#4D51B8 #7E4DB8 #B44DB8
triadic
#7E4DB8 #B87E4D #4DB87E
tetradic
#7E4DB8 #B84D51 #87B84D #4DB8B4
square
#7E4DB8 #B84D51 #87B84D #4DB8B4
split-complementary
#7E4DB8 #B8B44D #51B84D
monochromatic
#432863 #60398F #7E4DB8 #9E79C9 #BDA4DB

Accessibility & contrast

On white

5.77
#7E4DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7E4DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DB8
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DB8#FFFFFF#000000##FFFFFF
##7E4DB81.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C65BB
Deuteranopia (green-blind)
#3165B6
Tritanopia (blue-blind)
#73637B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e4db8;
/* rgb */ color: rgb(126, 77, 184);
/* oklch */ color: oklch(52.7% 0.164 302.2);
Tailwind
colors: {
  custom: {
    50: '#a781ce',
    500: '#7e4db8',
    950: '#000000',
  },
}
SCSS
$custom: #7e4db8;
$custom-light: #a781ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4db8",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 184
  },
  "hsl": {
    "h": 267.477,
    "s": 42.972,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52718,
    "c": 0.16425,
    "h": 302.2
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#7E4DB8
secondary
#B2C899
accent
#D35599
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E4DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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