#7E4BE2#7E4BE2

#7E4BE2 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.5% C 0.216 H 293.6°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7E4BE2
RGBrgb(126, 75, 226)
HSLhsl(260, 72%, 59%)
HSVhsv(260, 67%, 89%)
CMYKcmyk(44.2%, 66.8%, 0%, 11.4%)
CIE-LABlab(45.58, 54.27, -69.29)
CIE-LCHlch(45.58, 88.02, 308.07°)
OKLaboklab(55.45% 0.0867 -0.1982)
OKLCHoklch(55.45% 0.216 293.6)
XYZxyz(24.8440, 14.9580, 73.5150)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BE2 #AFE24B
analogous
#4B64E2 #7E4BE2 #CA4BE2
triadic
#7E4BE2 #E27E4B #4BE27E
tetradic
#7E4BE2 #E24B64 #AFE24B #4BE2CA
square
#7E4BE2 #E24B64 #AFE24B #4BE2CA
split-complementary
#7E4BE2 #E2CA4B #64E24B
monochromatic
#44199A #5C21CF #7E4BE2 #A480EA #CAB4F3

Accessibility & contrast

On white

5.26
#7E4BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7E4BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BE2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BE2#FFFFFF#000000##FFFFFF
##7E4BE21.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#0069DF
Tritanopia (blue-blind)
#617090
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e4be2;
/* rgb */ color: rgb(126, 75, 226);
/* oklch */ color: oklch(55.5% 0.216 293.6);
Tailwind
colors: {
  custom: {
    50: '#ab81ec',
    500: '#7e4be2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4be2;
$custom-light: #ab81ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4be2",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 226
  },
  "hsl": {
    "h": 260.265,
    "s": 72.249,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55454,
    "c": 0.21634,
    "h": 293.6
  },
  "luminance": 0.14959
}

Semantic roles & 50–950 ramp

primary
#7E4BE2
secondary
#CEE2A7
accent
#EF39B1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E4BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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