#7E4BD5#7E4BD5

#7E4BD5 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.5% C 0.201 H 296.0°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7E4BD5
RGBrgb(126, 75, 213)
HSLhsl(262, 62%, 56%)
HSVhsv(262, 65%, 84%)
CMYKcmyk(40.8%, 64.8%, 0%, 16.5%)
CIE-LABlab(44.62, 50.86, -63.43)
CIE-LCHlch(44.62, 81.30, 308.72°)
OKLaboklab(54.47% 0.0883 -0.181)
OKLCHoklch(54.47% 0.201 296)
XYZxyz(23.1274, 14.2714, 64.4740)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BD5 #A2D54B
analogous
#4B5DD5 #7E4BD5 #C34BD5
triadic
#7E4BD5 #D57E4B #4BD57E
tetradic
#7E4BD5 #D54B5D #A2D54B #4BD5C3
square
#7E4BD5 #D54B5D #A2D54B #4BD5C3
split-complementary
#7E4BD5 #D5C34B #5DD54B
monochromatic
#451F86 #5F2BB8 #7E4BD5 #A27DE1 #C5AEEC

Accessibility & contrast

On white

5.45
#7E4BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7E4BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BD5
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BD5#FFFFFF#000000##FFFFFF
##7E4BD51.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#0068D2
Tritanopia (blue-blind)
#686B89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4bd5;
/* rgb */ color: rgb(126, 75, 213);
/* oklch */ color: oklch(54.5% 0.201 296.0);
Tailwind
colors: {
  custom: {
    50: '#aa80e3',
    500: '#7e4bd5',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bd5;
$custom-light: #aa80e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bd5",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 213
  },
  "hsl": {
    "h": 262.174,
    "s": 62.162,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54465,
    "c": 0.20138,
    "h": 296
  },
  "luminance": 0.14272
}

Semantic roles & 50–950 ramp

primary
#7E4BD5
secondary
#C5DAA2
accent
#E543A9
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #7E4BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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