#7E57CC#7E57CC

#7E57CC is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.6% C 0.174 H 295.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7E57CC
RGBrgb(126, 87, 204)
HSLhsl(260, 53%, 57%)
HSVhsv(260, 57%, 80%)
CMYKcmyk(38.2%, 57.4%, 0%, 20%)
CIE-LABlab(46.46, 41.94, -55.29)
CIE-LCHlch(46.46, 69.40, 307.18°)
OKLaboklab(55.61% 0.0751 -0.1571)
OKLCHoklch(55.61% 0.174 295.6)
XYZxyz(22.9086, 15.6112, 58.9213)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E57CC #A5CC57
analogous
#576BCC #7E57CC #B957CC
triadic
#7E57CC #CC7E57 #57CC7E
tetradic
#7E57CC #CC576B #A5CC57 #57CCB9
square
#7E57CC #CC576B #A5CC57 #57CCB9
split-complementary
#7E57CC #CCB957 #6BCC57
monochromatic
#452781 #5E36B0 #7E57CC #A286DA #C6B5E9

Accessibility & contrast

On white

5.09
#7E57CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7E57CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E57CC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E57CC#FFFFFF#000000##FFFFFF
##7E57CC1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176FD0
Deuteranopia (green-blind)
#286CC9
Tritanopia (blue-blind)
#6B7089
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e57cc;
/* rgb */ color: rgb(126, 87, 204);
/* oklch */ color: oklch(55.6% 0.174 295.6);
Tailwind
colors: {
  custom: {
    50: '#a888dc',
    500: '#7e57cc',
    950: '#000000',
  },
}
SCSS
$custom: #7e57cc;
$custom-light: #a888dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e57cc",
  "rgb": {
    "r": 126,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 260,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55611,
    "c": 0.17411,
    "h": 295.6
  },
  "luminance": 0.15612
}

Semantic roles & 50–950 ramp

primary
#7E57CC
secondary
#C7D7A8
accent
#DD4BAC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E57CC

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

Preview Lab → · Contrast checker → · Palette generator →

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