#7E4BC9#7E4BC9

#7E4BC9 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.6% C 0.187 H 298.5°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7E4BC9
RGBrgb(126, 75, 201)
HSLhsl(264, 54%, 54%)
HSVhsv(264, 63%, 79%)
CMYKcmyk(37.3%, 62.7%, 0%, 21.2%)
CIE-LABlab(43.78, 47.75, -57.89)
CIE-LCHlch(43.78, 75.04, 309.52°)
OKLaboklab(53.59% 0.0894 -0.1647)
OKLCHoklch(53.59% 0.187 298.5)
XYZxyz(21.6602, 13.6845, 56.7472)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BC9 #96C94B
analogous
#4B57C9 #7E4BC9 #BD4BC9
triadic
#7E4BC9 #C97E4B #4BC97E
tetradic
#7E4BC9 #C94B57 #96C94B #4BC9BD
square
#7E4BC9 #C94B57 #96C94B #4BC9BD
split-complementary
#7E4BC9 #C9BD4B #57C94B
monochromatic
#452376 #6032A5 #7E4BC9 #A07AD7 #C1A9E5

Accessibility & contrast

On white

5.62
#7E4BC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7E4BC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BC9
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BC9#FFFFFF#000000##FFFFFF
##7E4BC91.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CD
Deuteranopia (green-blind)
#0D66C6
Tritanopia (blue-blind)
#6D6783
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4bc9;
/* rgb */ color: rgb(126, 75, 201);
/* oklch */ color: oklch(53.6% 0.187 298.5);
Tailwind
colors: {
  custom: {
    50: '#a880da',
    500: '#7e4bc9',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bc9;
$custom-light: #a880da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bc9",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 201
  },
  "hsl": {
    "h": 264.286,
    "s": 53.846,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53589,
    "c": 0.18737,
    "h": 298.5
  },
  "luminance": 0.13685
}

Semantic roles & 50–950 ramp

primary
#7E4BC9
secondary
#BDD39D
accent
#DD4BA2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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