#7E57B4#7E57B4

#7E57B4 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.1% C 0.144 H 301.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7E57B4
RGBrgb(126, 87, 180)
HSLhsl(265, 38%, 52%)
HSVhsv(265, 52%, 71%)
CMYKcmyk(30%, 51.7%, 0%, 29.4%)
CIE-LABlab(45.01, 35.66, -43.69)
CIE-LCHlch(45.01, 56.40, 309.22°)
OKLaboklab(54.07% 0.0742 -0.1231)
OKLCHoklch(54.07% 0.144 301.1)
XYZxyz(20.2487, 14.5472, 44.9123)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E57B4 #8DB457
analogous
#575FB4 #7E57B4 #AD57B4
triadic
#7E57B4 #B47E57 #57B47E
tetradic
#7E57B4 #B4575F #8DB457 #57B4AD
square
#7E57B4 #B4575F #8DB457 #57B4AD
split-complementary
#7E57B4 #B4AD57 #5FB457
monochromatic
#442D64 #61408E #7E57B4 #9E81C7 #BFACDA

Accessibility & contrast

On white

5.37
#7E57B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7E57B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E57B4
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E57B4#FFFFFF#000000##FFFFFF
##7E57B41.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376AB7
Deuteranopia (green-blind)
#426AB2
Tritanopia (blue-blind)
#73687D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e57b4;
/* rgb */ color: rgb(126, 87, 180);
/* oklch */ color: oklch(54.1% 0.144 301.1);
Tailwind
colors: {
  custom: {
    50: '#a687cb',
    500: '#7e57b4',
    950: '#000000',
  },
}
SCSS
$custom: #7e57b4;
$custom-light: #a687cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e57b4",
  "rgb": {
    "r": 126,
    "g": 87,
    "b": 180
  },
  "hsl": {
    "h": 265.161,
    "s": 38.272,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54071,
    "c": 0.1437,
    "h": 301.1
  },
  "luminance": 0.14547
}

Semantic roles & 50–950 ramp

primary
#7E57B4
secondary
#B7C89F
accent
#CE5A9D
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #7E57B4

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

Preview Lab → · Contrast checker → · Palette generator →

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