#7E5EB2#7E5EB2

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

Color values

HEX#7E5EB2
RGBrgb(126, 94, 178)
HSLhsl(263, 35%, 53%)
HSVhsv(263, 47%, 70%)
CMYKcmyk(29.2%, 47.2%, 0%, 30.2%)
CIE-LABlab(46.52, 31.06, -40.12)
CIE-LCHlch(46.52, 50.74, 307.74°)
OKLaboklab(55.16% 0.0643 -0.1126)
OKLCHoklch(55.16% 0.13 299.7)
XYZxyz(20.6409, 15.6553, 44.0452)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EB2 #92B25E
analogous
#5E68B2 #7E5EB2 #A85EB2
triadic
#7E5EB2 #B27E5E #5EB27E
tetradic
#7E5EB2 #B25E68 #92B25E #5EB2A8
square
#7E5EB2 #B25E68 #92B25E #5EB2A8
split-complementary
#7E5EB2 #B2A85E #68B25E
monochromatic
#453065 #61448F #7E5EB2 #9F87C6 #C0B1DA

Accessibility & contrast

On white

5.08
#7E5EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7E5EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5EB2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EB2#FFFFFF#000000##FFFFFF
##7E5EB21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#746D7F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e5eb2;
/* rgb */ color: rgb(126, 94, 178);
/* oklch */ color: oklch(55.2% 0.130 299.7);
Tailwind
colors: {
  custom: {
    50: '#a68cc9',
    500: '#7e5eb2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5eb2;
$custom-light: #a68cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5eb2",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 178
  },
  "hsl": {
    "h": 262.857,
    "s": 35.294,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55162,
    "c": 0.12972,
    "h": 299.7
  },
  "luminance": 0.15655
}

Semantic roles & 50–950 ramp

primary
#7E5EB2
secondary
#BAC8A4
accent
#CB5CA1
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7E5EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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