#7E4BD9#7E4BD9

#7E4BD9 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.8% C 0.206 H 295.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7E4BD9
RGBrgb(126, 75, 217)
HSLhsl(262, 65%, 57%)
HSVhsv(262, 65%, 85%)
CMYKcmyk(41.9%, 65.4%, 0%, 14.9%)
CIE-LABlab(44.91, 51.91, -65.25)
CIE-LCHlch(44.91, 83.38, 308.50°)
OKLaboklab(54.77% 0.0878 -0.1863)
OKLCHoklch(54.77% 0.206 295.2)
XYZxyz(23.6413, 14.4770, 67.1809)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BD9 #A6D94B
analogous
#4B5FD9 #7E4BD9 #C54BD9
triadic
#7E4BD9 #D97E4B #4BD97E
tetradic
#7E4BD9 #D94B5F #A6D94B #4BD9C5
square
#7E4BD9 #D94B5F #A6D94B #4BD9C5
split-complementary
#7E4BD9 #D9C54B #5FD94B
monochromatic
#451E8C #5E28BF #7E4BD9 #A27EE4 #C6B0EE

Accessibility & contrast

On white

5.39
#7E4BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7E4BD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BD9
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BD9#FFFFFF#000000##FFFFFF
##7E4BD91.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#0068D6
Tritanopia (blue-blind)
#666D8C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4bd9;
/* rgb */ color: rgb(126, 75, 217);
/* oklch */ color: oklch(54.8% 0.206 295.2);
Tailwind
colors: {
  custom: {
    50: '#aa80e6',
    500: '#7e4bd9',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bd9;
$custom-light: #aa80e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bd9",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 217
  },
  "hsl": {
    "h": 261.549,
    "s": 65.138,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54765,
    "c": 0.20601,
    "h": 295.2
  },
  "luminance": 0.14478
}

Semantic roles & 50–950 ramp

primary
#7E4BD9
secondary
#C8DDA3
accent
#E840AC
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E4BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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