#7E4BD7#7E4BD7

#7E4BD7 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.6% C 0.204 H 295.6°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7E4BD7
RGBrgb(126, 75, 215)
HSLhsl(262, 64%, 57%)
HSVhsv(262, 65%, 84%)
CMYKcmyk(41.4%, 65.1%, 0%, 15.7%)
CIE-LABlab(44.76, 51.38, -64.34)
CIE-LCHlch(44.76, 82.34, 308.61°)
OKLaboklab(54.61% 0.0881 -0.1837)
OKLCHoklch(54.61% 0.204 295.6)
XYZxyz(23.3828, 14.3736, 65.8192)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BD7 #A4D74B
analogous
#4B5ED7 #7E4BD7 #C44BD7
triadic
#7E4BD7 #D77E4B #4BD77E
tetradic
#7E4BD7 #D74B5E #A4D74B #4BD7C4
square
#7E4BD7 #D74B5E #A4D74B #4BD7C4
split-complementary
#7E4BD7 #D7C44B #5ED74B
monochromatic
#451E89 #5F2ABB #7E4BD7 #A27DE2 #C6AFED

Accessibility & contrast

On white

5.42
#7E4BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7E4BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BD7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BD7#FFFFFF#000000##FFFFFF
##7E4BD71.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#0068D4
Tritanopia (blue-blind)
#676C8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4bd7;
/* rgb */ color: rgb(126, 75, 215);
/* oklch */ color: oklch(54.6% 0.204 295.6);
Tailwind
colors: {
  custom: {
    50: '#aa80e4',
    500: '#7e4bd7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bd7;
$custom-light: #aa80e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bd7",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 215
  },
  "hsl": {
    "h": 261.857,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54614,
    "c": 0.20369,
    "h": 295.6
  },
  "luminance": 0.14374
}

Semantic roles & 50–950 ramp

primary
#7E4BD7
secondary
#C7DBA2
accent
#E741AA
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E4BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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