#7E4FB5#7E4FB5

#7E4FB5 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.8% C 0.158 H 302.6°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7E4FB5
RGBrgb(126, 79, 181)
HSLhsl(268, 41%, 51%)
HSVhsv(268, 56%, 71%)
CMYKcmyk(30.4%, 56.4%, 0%, 29%)
CIE-LABlab(43.31, 40.46, -46.99)
CIE-LCHlch(43.31, 62.01, 310.73°)
OKLaboklab(52.83% 0.0849 -0.1327)
OKLCHoklch(52.83% 0.158 302.6)
XYZxyz(19.7388, 13.3638, 45.2467)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FB5 #86B54F
analogous
#4F53B5 #7E4FB5 #B14FB5
triadic
#7E4FB5 #B57E4F #4FB57E
tetradic
#7E4FB5 #B54F53 #86B54F #4FB5B1
square
#7E4FB5 #B54F53 #86B54F #4FB5B1
split-complementary
#7E4FB5 #B5B14F #53B54F
monochromatic
#432961 #603B8C #7E4FB5 #9E7AC7 #BDA5D9

Accessibility & contrast

On white

5.72
#7E4FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#7E4FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FB5
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FB5#FFFFFF#000000##FFFFFF
##7E4FB51.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2665B8
Deuteranopia (green-blind)
#3766B3
Tritanopia (blue-blind)
#74637A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e4fb5;
/* rgb */ color: rgb(126, 79, 181);
/* oklch */ color: oklch(52.8% 0.158 302.6);
Tailwind
colors: {
  custom: {
    50: '#a782cc',
    500: '#7e4fb5',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fb5;
$custom-light: #a782cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fb5",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 267.647,
    "s": 40.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52832,
    "c": 0.15755,
    "h": 302.6
  },
  "luminance": 0.13364
}

Semantic roles & 50–950 ramp

primary
#7E4FB5
secondary
#B2C699
accent
#D15799
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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