#7E4FDB#7E4FDB

#7E4FDB is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.5% C 0.203 H 294.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7E4FDB
RGBrgb(126, 79, 219)
HSLhsl(260, 66%, 58%)
HSVhsv(260, 64%, 86%)
CMYKcmyk(42.5%, 63.9%, 0%, 14.1%)
CIE-LABlab(45.83, 50.33, -64.90)
CIE-LCHlch(45.83, 82.13, 307.80°)
OKLaboklab(55.47% 0.0834 -0.1853)
OKLCHoklch(55.47% 0.203 294.2)
XYZxyz(24.1829, 15.1414, 68.6525)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FDB #ACDB4F
analogous
#4F66DB #7E4FDB #C44FDB
triadic
#7E4FDB #DB7E4F #4FDB7E
tetradic
#7E4FDB #DB4F66 #ACDB4F #4FDBC4
square
#7E4FDB #DB4F66 #ACDB4F #4FDBC4
split-complementary
#7E4FDB #DBC44F #66DB4F
monochromatic
#451E92 #5D28C5 #7E4FDB #A382E5 #C8B5F0

Accessibility & contrast

On white

5.21
#7E4FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7E4FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FDB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FDB#FFFFFF#000000##FFFFFF
##7E4FDB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#006AD8
Tritanopia (blue-blind)
#65708E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e4fdb;
/* rgb */ color: rgb(126, 79, 219);
/* oklch */ color: oklch(55.5% 0.203 294.2);
Tailwind
colors: {
  custom: {
    50: '#aa83e7',
    500: '#7e4fdb',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fdb;
$custom-light: #aa83e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fdb",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 260.143,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55473,
    "c": 0.20324,
    "h": 294.2
  },
  "luminance": 0.15142
}

Semantic roles & 50–950 ramp

primary
#7E4FDB
secondary
#CCDFA7
accent
#E93FB0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E4FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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