#7E5ABC#7E5ABC

#7E5ABC is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.1% C 0.149 H 298.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7E5ABC
RGBrgb(126, 90, 188)
HSLhsl(262, 42%, 55%)
HSVhsv(262, 52%, 74%)
CMYKcmyk(33%, 52.1%, 0%, 26.3%)
CIE-LABlab(46.15, 35.99, -46.54)
CIE-LCHlch(46.15, 58.83, 307.72°)
OKLaboklab(55.07% 0.0708 -0.1314)
OKLCHoklch(55.07% 0.149 298.3)
XYZxyz(21.3352, 15.3786, 49.4115)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5ABC #98BC5A
analogous
#5A67BC #7E5ABC #AF5ABC
triadic
#7E5ABC #BC7E5A #5ABC7E
tetradic
#7E5ABC #BC5A67 #98BC5A #5ABCAF
square
#7E5ABC #BC5A67 #98BC5A #5ABCAF
split-complementary
#7E5ABC #BCAF5A #67BC5A
monochromatic
#452D6F #603F9A #7E5ABC #A086CE #C2B1DF

Accessibility & contrast

On white

5.15
#7E5ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7E5ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5ABC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5ABC#FFFFFF#000000##FFFFFF
##7E5ABC1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366DBF
Deuteranopia (green-blind)
#3F6CBA
Tritanopia (blue-blind)
#716D82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e5abc;
/* rgb */ color: rgb(126, 90, 188);
/* oklch */ color: oklch(55.1% 0.149 298.3);
Tailwind
colors: {
  custom: {
    50: '#a689d1',
    500: '#7e5abc',
    950: '#000000',
  },
}
SCSS
$custom: #7e5abc;
$custom-light: #a689d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5abc",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 188
  },
  "hsl": {
    "h": 262.041,
    "s": 42.241,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55067,
    "c": 0.14926,
    "h": 298.3
  },
  "luminance": 0.15379
}

Semantic roles & 50–950 ramp

primary
#7E5ABC
secondary
#BECEA4
accent
#D256A4
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7E5ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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