#7E4BD2#7E4BD2

#7E4BD2 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.2% C 0.198 H 296.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7E4BD2
RGBrgb(126, 75, 210)
HSLhsl(263, 60%, 56%)
HSVhsv(263, 64%, 82%)
CMYKcmyk(40%, 64.3%, 0%, 17.6%)
CIE-LABlab(44.41, 50.08, -62.06)
CIE-LCHlch(44.41, 79.74, 308.90°)
OKLaboklab(54.24% 0.0886 -0.177)
OKLCHoklch(54.24% 0.198 296.6)
XYZxyz(22.7501, 14.1205, 62.4872)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BD2 #9FD24B
analogous
#4B5BD2 #7E4BD2 #C24BD2
triadic
#7E4BD2 #D27E4B #4BD27E
tetradic
#7E4BD2 #D24B5B #9FD24B #4BD2C2
square
#7E4BD2 #D24B5B #9FD24B #4BD2C2
split-complementary
#7E4BD2 #D2C24B #5BD24B
monochromatic
#452182 #5F2DB3 #7E4BD2 #A17CDE #C4ADEA

Accessibility & contrast

On white

5.49
#7E4BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7E4BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BD2
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BD2#FFFFFF#000000##FFFFFF
##7E4BD21.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#0067CF
Tritanopia (blue-blind)
#696A88
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e4bd2;
/* rgb */ color: rgb(126, 75, 210);
/* oklch */ color: oklch(54.2% 0.198 296.6);
Tailwind
colors: {
  custom: {
    50: '#a980e1',
    500: '#7e4bd2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bd2;
$custom-light: #a980e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bd2",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 210
  },
  "hsl": {
    "h": 262.667,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54243,
    "c": 0.1979,
    "h": 296.6
  },
  "luminance": 0.14121
}

Semantic roles & 50–950 ramp

primary
#7E4BD2
secondary
#C3D8A0
accent
#E345A7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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