#7E4BEB#7E4BEB

#7E4BEB is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.2% C 0.227 H 292.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7E4BEB
RGBrgb(126, 75, 235)
HSLhsl(259, 80%, 61%)
HSVhsv(259, 68%, 92%)
CMYKcmyk(46.4%, 68.1%, 0%, 7.8%)
CIE-LABlab(46.26, 56.66, -73.26)
CIE-LCHlch(46.26, 92.61, 307.72°)
OKLaboklab(56.16% 0.0853 -0.2099)
OKLCHoklch(56.16% 0.227 292.1)
XYZxyz(26.1115, 15.4650, 80.1904)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BEB #B8EB4B
analogous
#4B68EB #7E4BEB #CE4BEB
triadic
#7E4BEB #EB7E4B #4BEB7E
tetradic
#7E4BEB #EB4B68 #B8EB4B #4BEBCE
square
#7E4BEB #EB4B68 #B8EB4B #4BEBCE
split-complementary
#7E4BEB #EBCE4B #68EB4B
monochromatic
#4313A9 #5819E0 #7E4BEB #A582F1 #CDB9F7

Accessibility & contrast

On white

5.13
#7E4BEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7E4BEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BEB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BEB#FFFFFF#000000##FFFFFF
##7E4BEB1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F0
Deuteranopia (green-blind)
#006AE8
Tritanopia (blue-blind)
#5C7395
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e4beb;
/* rgb */ color: rgb(126, 75, 235);
/* oklch */ color: oklch(56.2% 0.227 292.1);
Tailwind
colors: {
  custom: {
    50: '#ac81f3',
    500: '#7e4beb',
    950: '#000000',
  },
}
SCSS
$custom: #7e4beb;
$custom-light: #ac81f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4beb",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 235
  },
  "hsl": {
    "h": 259.125,
    "s": 80,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56161,
    "c": 0.22656,
    "h": 292.1
  },
  "luminance": 0.15466
}

Semantic roles & 50–950 ramp

primary
#7E4BEB
secondary
#D4E7AB
accent
#DC0999
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E4BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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