#7E4BD4#7E4BD4

#7E4BD4 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.4% C 0.200 H 296.2°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7E4BD4
RGBrgb(126, 75, 212)
HSLhsl(262, 61%, 56%)
HSVhsv(262, 65%, 83%)
CMYKcmyk(40.6%, 64.6%, 0%, 16.9%)
CIE-LABlab(44.55, 50.60, -62.97)
CIE-LCHlch(44.55, 80.78, 308.78°)
OKLaboklab(54.39% 0.0884 -0.1796)
OKLCHoklch(54.39% 0.2 296.2)
XYZxyz(23.0008, 14.2208, 63.8076)
Luminance0.1422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BD4 #A1D44B
analogous
#4B5DD4 #7E4BD4 #C34BD4
triadic
#7E4BD4 #D47E4B #4BD47E
tetradic
#7E4BD4 #D44B5D #A1D44B #4BD4C3
square
#7E4BD4 #D44B5D #A1D44B #4BD4C3
split-complementary
#7E4BD4 #D4C34B #5DD44B
monochromatic
#452085 #5F2CB6 #7E4BD4 #A17CE0 #C5AEEC

Accessibility & contrast

On white

5.46
#7E4BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7E4BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BD4
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BD4#FFFFFF#000000##FFFFFF
##7E4BD41.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#686B89
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e4bd4;
/* rgb */ color: rgb(126, 75, 212);
/* oklch */ color: oklch(54.4% 0.200 296.2);
Tailwind
colors: {
  custom: {
    50: '#a980e2',
    500: '#7e4bd4',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bd4;
$custom-light: #a980e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bd4",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 212
  },
  "hsl": {
    "h": 262.336,
    "s": 61.435,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54391,
    "c": 0.20022,
    "h": 296.2
  },
  "luminance": 0.14221
}

Semantic roles & 50–950 ramp

primary
#7E4BD4
secondary
#C5DAA1
accent
#E543A9
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #7E4BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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