#7E5EA2#7E5EA2

#7E5EA2 is a mid, moderate violet. Relative luminance 0.150; OKLCH L 54.3% C 0.108 H 304.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7E5EA2
RGBrgb(126, 94, 162)
HSLhsl(268, 27%, 50%)
HSVhsv(268, 42%, 64%)
CMYKcmyk(22.2%, 42%, 0%, 36.5%)
CIE-LABlab(45.70, 27.05, -32.01)
CIE-LCHlch(45.70, 41.90, 310.20°)
OKLaboklab(54.28% 0.0617 -0.0891)
OKLCHoklch(54.28% 0.108 304.7)
XYZxyz(19.1271, 15.0497, 36.0727)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EA2 #82A25E
analogous
#5E60A2 #7E5EA2 #A05EA2
triadic
#7E5EA2 #A27E5E #5EA27E
tetradic
#7E5EA2 #A25E60 #82A25E #5EA2A0
square
#7E5EA2 #A25E60 #82A25E #5EA2A0
split-complementary
#7E5EA2 #A2A05E #60A25E
monochromatic
#423155 #60477B #7E5EA2 #9D85B8 #BCACCF

Accessibility & contrast

On white

5.24
#7E5EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7E5EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5EA2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EA2#FFFFFF#000000##FFFFFF
##7E5EA21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6BA5
Deuteranopia (green-blind)
#556CA0
Tritanopia (blue-blind)
#786978
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e5ea2;
/* rgb */ color: rgb(126, 94, 162);
/* oklch */ color: oklch(54.3% 0.108 304.7);
Tailwind
colors: {
  custom: {
    50: '#a58cbe',
    500: '#7e5ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ea2;
$custom-light: #a58cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ea2",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 268.235,
    "s": 26.772,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54281,
    "c": 0.10838,
    "h": 304.7
  },
  "luminance": 0.1505
}

Semantic roles & 50–950 ramp

primary
#7E5EA2
secondary
#AFBD9F
accent
#C36597
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7E5EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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