#7E4DB7#7E4DB7

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

Color values

HEX#7E4DB7
RGBrgb(126, 77, 183)
HSLhsl(268, 42%, 51%)
HSVhsv(268, 58%, 72%)
CMYKcmyk(31.1%, 57.9%, 0%, 28.2%)
CIE-LABlab(43.01, 42.08, -48.65)
CIE-LCHlch(43.01, 64.32, 310.86°)
OKLaboklab(52.65% 0.0875 -0.1376)
OKLCHoklch(52.65% 0.163 302.5)
XYZxyz(19.8033, 13.1623, 46.2878)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DB7 #86B74D
analogous
#4D51B7 #7E4DB7 #B34DB7
triadic
#7E4DB7 #B77E4D #4DB77E
tetradic
#7E4DB7 #B74D51 #86B74D #4DB7B3
square
#7E4DB7 #B74D51 #86B74D #4DB7B3
split-complementary
#7E4DB7 #B7B34D #51B74D
monochromatic
#432862 #60398E #7E4DB7 #9E79C9 #BDA4DA

Accessibility & contrast

On white

5.78
#7E4DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7E4DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DB7
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DB7#FFFFFF#000000##FFFFFF
##7E4DB71.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BA
Deuteranopia (green-blind)
#3365B5
Tritanopia (blue-blind)
#73627A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e4db7;
/* rgb */ color: rgb(126, 77, 183);
/* oklch */ color: oklch(52.7% 0.163 302.5);
Tailwind
colors: {
  custom: {
    50: '#a781cd',
    500: '#7e4db7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4db7;
$custom-light: #a781cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4db7",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 267.736,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52652,
    "c": 0.16305,
    "h": 302.5
  },
  "luminance": 0.13162
}

Semantic roles & 50–950 ramp

primary
#7E4DB7
secondary
#B2C798
accent
#D25699
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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