#7E4BD8#7E4BD8

#7E4BD8 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.7% C 0.205 H 295.4°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7E4BD8
RGBrgb(126, 75, 216)
HSLhsl(262, 64%, 57%)
HSVhsv(262, 65%, 85%)
CMYKcmyk(41.7%, 65.3%, 0%, 15.3%)
CIE-LABlab(44.84, 51.64, -64.80)
CIE-LCHlch(44.84, 82.86, 308.56°)
OKLaboklab(54.69% 0.088 -0.185)
OKLCHoklch(54.69% 0.205 295.4)
XYZxyz(23.5116, 14.4251, 66.4980)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BD8 #A5D84B
analogous
#4B5FD8 #7E4BD8 #C54BD8
triadic
#7E4BD8 #D87E4B #4BD87E
tetradic
#7E4BD8 #D84B5F #A5D84B #4BD8C5
square
#7E4BD8 #D84B5F #A5D84B #4BD8C5
split-complementary
#7E4BD8 #D8C54B #5FD84B
monochromatic
#451E8B #5E29BD #7E4BD8 #A27DE3 #C6B0EE

Accessibility & contrast

On white

5.41
#7E4BD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7E4BD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BD8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BD8#FFFFFF#000000##FFFFFF
##7E4BD81.005.413.895.41
#FFFFFF5.411.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#0068D5
Tritanopia (blue-blind)
#666C8B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4bd8;
/* rgb */ color: rgb(126, 75, 216);
/* oklch */ color: oklch(54.7% 0.205 295.4);
Tailwind
colors: {
  custom: {
    50: '#aa80e5',
    500: '#7e4bd8',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bd8;
$custom-light: #aa80e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bd8",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 216
  },
  "hsl": {
    "h": 261.702,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54689,
    "c": 0.20485,
    "h": 295.4
  },
  "luminance": 0.14426
}

Semantic roles & 50–950 ramp

primary
#7E4BD8
secondary
#C7DCA3
accent
#E740AB
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E4BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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