#7E5CD7#7E5CD7

#7E5CD7 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.2% C 0.181 H 292.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7E5CD7
RGBrgb(126, 92, 215)
HSLhsl(257, 61%, 60%)
HSVhsv(257, 57%, 84%)
CMYKcmyk(41.4%, 57.2%, 0%, 15.7%)
CIE-LABlab(48.25, 42.09, -58.70)
CIE-LCHlch(48.25, 72.23, 305.64°)
OKLaboklab(57.16% 0.0691 -0.1671)
OKLCHoklch(57.16% 0.181 292.5)
XYZxyz(24.6937, 16.9955, 66.2562)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CD7 #B5D75C
analogous
#5C78D7 #7E5CD7 #BB5CD7
triadic
#7E5CD7 #D77E5C #5CD77E
tetradic
#7E5CD7 #D75C78 #B5D75C #5CD7BB
square
#7E5CD7 #D75C78 #B5D75C #5CD7BB
split-complementary
#7E5CD7 #D7BB5C #78D75C
monochromatic
#432494 #5A30C5 #7E5CD7 #A58DE3 #CCBEEF

Accessibility & contrast

On white

4.77
#7E5CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#7E5CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5CD7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CD7#FFFFFF#000000##FFFFFF
##7E5CD71.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1074DB
Deuteranopia (green-blind)
#1F70D4
Tritanopia (blue-blind)
#667791
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e5cd7;
/* rgb */ color: rgb(126, 92, 215);
/* oklch */ color: oklch(57.2% 0.181 292.5);
Tailwind
colors: {
  custom: {
    50: '#a98be4',
    500: '#7e5cd7',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cd7;
$custom-light: #a98be4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cd7",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 256.585,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.57156,
    "c": 0.18082,
    "h": 292.5
  },
  "luminance": 0.16996
}

Semantic roles & 50–950 ramp

primary
#7E5CD7
secondary
#D2DFB0
accent
#C81D99
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7E5CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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