#7E5FCA#7E5FCA

#7E5FCA is a mid, vivid violet. Relative luminance 0.169; OKLCH L 56.8% C 0.160 H 294.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7E5FCA
RGBrgb(126, 95, 202)
HSLhsl(257, 50%, 58%)
HSVhsv(257, 53%, 79%)
CMYKcmyk(37.6%, 53%, 0%, 20.8%)
CIE-LABlab(48.11, 36.82, -51.49)
CIE-LCHlch(48.11, 63.30, 305.57°)
OKLaboklab(56.79% 0.0652 -0.1459)
OKLCHoklch(56.79% 0.16 294.1)
XYZxyz(23.3543, 16.8838, 57.8941)
Luminance0.1688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FCA #ABCA5F
analogous
#5F75CA #7E5FCA #B35FCA
triadic
#7E5FCA #CA7E5F #5FCA7E
tetradic
#7E5FCA #CA5F75 #ABCA5F #5FCAB3
square
#7E5FCA #CA5F75 #ABCA5F #5FCAB3
split-complementary
#7E5FCA #CAB35F #75CA5F
monochromatic
#452B83 #5D3BB1 #7E5FCA #A38DD9 #C8BBE8

Accessibility & contrast

On white

4.80
#7E5FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#7E5FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5FCA
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FCA#FFFFFF#000000##FFFFFF
##7E5FCA1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3173CE
Deuteranopia (green-blind)
#3970C8
Tritanopia (blue-blind)
#6B758B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e5fca;
/* rgb */ color: rgb(126, 95, 202);
/* oklch */ color: oklch(56.8% 0.160 294.1);
Tailwind
colors: {
  custom: {
    50: '#a78ddb',
    500: '#7e5fca',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fca;
$custom-light: #a78ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fca",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 257.383,
    "s": 50.235,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56792,
    "c": 0.15981,
    "h": 294.1
  },
  "luminance": 0.16884
}

Semantic roles & 50–950 ramp

primary
#7E5FCA
secondary
#CBD8AD
accent
#DA4EB1
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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