#7E4BE7#7E4BE7

#7E4BE7 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.8% C 0.222 H 292.8°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7E4BE7
RGBrgb(126, 75, 231)
HSLhsl(260, 76%, 60%)
HSVhsv(260, 68%, 91%)
CMYKcmyk(45.5%, 67.5%, 0%, 9.4%)
CIE-LABlab(45.96, 55.60, -71.50)
CIE-LCHlch(45.96, 90.57, 307.87°)
OKLaboklab(55.84% 0.0859 -0.2047)
OKLCHoklch(55.84% 0.222 292.8)
XYZxyz(25.5401, 15.2365, 77.1811)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BE7 #B4E74B
analogous
#4B66E7 #7E4BE7 #CC4BE7
triadic
#7E4BE7 #E77E4B #4BE77E
tetradic
#7E4BE7 #E74B66 #B4E74B #4BE7CC
square
#7E4BE7 #E74B66 #B4E74B #4BE7CC
split-complementary
#7E4BE7 #E7CC4B #66E74B
monochromatic
#4316A2 #5A1DD8 #7E4BE7 #A581EE #CBB7F5

Accessibility & contrast

On white

5.19
#7E4BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7E4BE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BE7
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BE7#FFFFFF#000000##FFFFFF
##7E4BE71.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#006AE4
Tritanopia (blue-blind)
#5F7293
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e4be7;
/* rgb */ color: rgb(126, 75, 231);
/* oklch */ color: oklch(55.8% 0.222 292.8);
Tailwind
colors: {
  custom: {
    50: '#ab81f0',
    500: '#7e4be7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4be7;
$custom-light: #ab81f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4be7",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 231
  },
  "hsl": {
    "h": 259.615,
    "s": 76.471,
    "l": 60
  },
  "oklch": {
    "l": 0.55844,
    "c": 0.22203,
    "h": 292.8
  },
  "luminance": 0.15237
}

Semantic roles & 50–950 ramp

primary
#7E4BE7
secondary
#D1E5A9
accent
#F335B5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7E4BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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