#7E50CC#7E50CC

#7E50CC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.184 H 297.0°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7E50CC
RGBrgb(126, 80, 204)
HSLhsl(262, 55%, 56%)
HSVhsv(262, 61%, 80%)
CMYKcmyk(38.2%, 60.8%, 0%, 20%)
CIE-LABlab(44.99, 45.83, -57.66)
CIE-LCHlch(44.99, 73.66, 308.48°)
OKLaboklab(54.53% 0.0834 -0.164)
OKLCHoklch(54.53% 0.184 297)
XYZxyz(22.3691, 14.5322, 58.7415)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E50CC #9ECC50
analogous
#5060CC #7E50CC #BC50CC
triadic
#7E50CC #CC7E50 #50CC7E
tetradic
#7E50CC #CC5060 #9ECC50 #50CCBC
square
#7E50CC #CC5060 #9ECC50 #50CCBC
split-complementary
#7E50CC #CCBC50 #60CC50
monochromatic
#45247D #6032AD #7E50CC #A17FDA #C4AFE8

Accessibility & contrast

On white

5.38
#7E50CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7E50CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E50CC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E50CC#FFFFFF#000000##FFFFFF
##7E50CC1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#1669C9
Tritanopia (blue-blind)
#6B6B86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e50cc;
/* rgb */ color: rgb(126, 80, 204);
/* oklch */ color: oklch(54.5% 0.184 297.0);
Tailwind
colors: {
  custom: {
    50: '#a883dc',
    500: '#7e50cc',
    950: '#000000',
  },
}
SCSS
$custom: #7e50cc;
$custom-light: #a883dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e50cc",
  "rgb": {
    "r": 126,
    "g": 80,
    "b": 204
  },
  "hsl": {
    "h": 262.258,
    "s": 54.867,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54533,
    "c": 0.18404,
    "h": 297
  },
  "luminance": 0.14533
}

Semantic roles & 50–950 ramp

primary
#7E50CC
secondary
#C3D6A2
accent
#DE4AA7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E50CC

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

Preview Lab → · Contrast checker → · Palette generator →

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