#7E5FCE#7E5FCE

#7E5FCE is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.0% C 0.165 H 293.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7E5FCE
RGBrgb(126, 95, 206)
HSLhsl(257, 53%, 59%)
HSVhsv(257, 54%, 81%)
CMYKcmyk(38.8%, 53.9%, 0%, 19.2%)
CIE-LABlab(48.36, 37.91, -53.39)
CIE-LCHlch(48.36, 65.48, 305.37°)
OKLaboklab(57.05% 0.0654 -0.1515)
OKLCHoklch(57.05% 0.165 293.3)
XYZxyz(23.8340, 17.0757, 60.4207)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FCE #AFCE5F
analogous
#5F78CE #7E5FCE #B65FCE
triadic
#7E5FCE #CE7E5F #5FCE7E
tetradic
#7E5FCE #CE5F78 #AFCE5F #5FCEB6
square
#7E5FCE #CE5F78 #AFCE5F #5FCEB6
split-complementary
#7E5FCE #CEB65F #78CE5F
monochromatic
#442A89 #5C38B8 #7E5FCE #A48EDC #CABDEB

Accessibility & contrast

On white

4.76
#7E5FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7E5FCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5FCE
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FCE#FFFFFF#000000##FFFFFF
##7E5FCE1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D74D2
Deuteranopia (green-blind)
#3471CB
Tritanopia (blue-blind)
#6A768D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e5fce;
/* rgb */ color: rgb(126, 95, 206);
/* oklch */ color: oklch(57.0% 0.165 293.3);
Tailwind
colors: {
  custom: {
    50: '#a88dde',
    500: '#7e5fce',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fce;
$custom-light: #a88dde;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fce",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 206
  },
  "hsl": {
    "h": 256.757,
    "s": 53.11,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57049,
    "c": 0.16501,
    "h": 293.3
  },
  "luminance": 0.17076
}

Semantic roles & 50–950 ramp

primary
#7E5FCE
secondary
#CEDAAF
accent
#DD4BB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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