#7E3FBB#7E3FBB

#7E3FBB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.188 H 303.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7E3FBB
RGBrgb(126, 63, 187)
HSLhsl(270, 50%, 49%)
HSVhsv(270, 66%, 73%)
CMYKcmyk(32.6%, 66.3%, 0%, 26.7%)
CIE-LABlab(40.54, 50.44, -54.97)
CIE-LCHlch(40.54, 74.60, 312.54°)
OKLaboklab(50.94% 0.1042 -0.1561)
OKLCHoklch(50.94% 0.188 303.7)
XYZxyz(19.3493, 11.5785, 48.2196)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3FBB #7CBB3F
analogous
#403FBB #7E3FBB #BB3FBA
triadic
#7E3FBB #BB7E3F #3FBB7E
tetradic
#7E3FBB #BB403F #7CBB3F #3FBABB
square
#7E3FBB #BB403F #7CBB3F #3FBABB
split-complementary
#7E3FBB #BABB3F #3FBB40
monochromatic
#40205F #5F308D #7E3FBB #9C6ACD #BB98DC

Accessibility & contrast

On white

6.33
#7E3FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7E3FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3FBB
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3FBB#FFFFFF#000000##FFFFFF
##7E3FBB1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#125FB8
Tritanopia (blue-blind)
#725A78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3fbb;
/* rgb */ color: rgb(126, 63, 187);
/* oklch */ color: oklch(50.9% 0.188 303.7);
Tailwind
colors: {
  custom: {
    50: '#a878d0',
    500: '#7e3fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7e3fbb;
$custom-light: #a878d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3fbb",
  "rgb": {
    "r": 126,
    "g": 63,
    "b": 187
  },
  "hsl": {
    "h": 270.484,
    "s": 49.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50944,
    "c": 0.18765,
    "h": 303.7
  },
  "luminance": 0.11578
}

Semantic roles & 50–950 ramp

primary
#7E3FBB
secondary
#AAC88E
accent
#D94F93
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E3FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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