#7E5EB3#7E5EB3

#7E5EB3 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.2% C 0.131 H 299.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7E5EB3
RGBrgb(126, 94, 179)
HSLhsl(263, 36%, 54%)
HSVhsv(263, 47%, 70%)
CMYKcmyk(29.6%, 47.5%, 0%, 29.8%)
CIE-LABlab(46.57, 31.32, -40.62)
CIE-LCHlch(46.57, 51.29, 307.63°)
OKLaboklab(55.22% 0.0645 -0.1141)
OKLCHoklch(55.22% 0.131 299.5)
XYZxyz(20.7417, 15.6956, 44.5759)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EB3 #93B35E
analogous
#5E68B3 #7E5EB3 #A85EB3
triadic
#7E5EB3 #B37E5E #5EB37E
tetradic
#7E5EB3 #B35E68 #93B35E #5EB3A8
square
#7E5EB3 #B35E68 #93B35E #5EB3A8
split-complementary
#7E5EB3 #B3A85E #68B35E
monochromatic
#453066 #614490 #7E5EB3 #9F88C7 #C1B1DA

Accessibility & contrast

On white

5.07
#7E5EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7E5EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5EB3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EB3#FFFFFF#000000##FFFFFF
##7E5EB31.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446EB6
Deuteranopia (green-blind)
#4B6EB1
Tritanopia (blue-blind)
#736D80
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e5eb3;
/* rgb */ color: rgb(126, 94, 179);
/* oklch */ color: oklch(55.2% 0.131 299.5);
Tailwind
colors: {
  custom: {
    50: '#a68cca',
    500: '#7e5eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7e5eb3;
$custom-light: #a68cca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5eb3",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 179
  },
  "hsl": {
    "h": 262.588,
    "s": 35.865,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5522,
    "c": 0.13105,
    "h": 299.5
  },
  "luminance": 0.15696
}

Semantic roles & 50–950 ramp

primary
#7E5EB3
secondary
#BBC9A4
accent
#CC5CA2
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7E5EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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