#7B57E1#7B57E1

#7B57E1 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.8% C 0.200 H 290.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7B57E1
RGBrgb(123, 87, 225)
HSLhsl(256, 70%, 61%)
HSVhsv(256, 61%, 88%)
CMYKcmyk(45.3%, 61.3%, 0%, 11.8%)
CIE-LABlab(47.58, 47.02, -65.49)
CIE-LCHlch(47.58, 80.62, 305.68°)
OKLaboklab(56.81% 0.0705 -0.1872)
OKLCHoklch(56.81% 0.2 290.6)
XYZxyz(25.1634, 16.4627, 73.0713)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B57E1 #BDE157
analogous
#5778E1 #7B57E1 #C057E1
triadic
#7B57E1 #E17B57 #57E17B
tetradic
#7B57E1 #E15778 #BDE157 #57E1C0
square
#7B57E1 #E15778 #BDE157 #57E1C0
split-complementary
#7B57E1 #E1C057 #78E157
monochromatic
#3F1DA1 #5426D5 #7B57E1 #A48BEA #CDBFF4

Accessibility & contrast

On white

4.89
#7B57E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7B57E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B57E1
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B57E1#FFFFFF#000000##FFFFFF
##7B57E11.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#006EDE
Tritanopia (blue-blind)
#5C7794
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b57e1;
/* rgb */ color: rgb(123, 87, 225);
/* oklch */ color: oklch(56.8% 0.200 290.6);
Tailwind
colors: {
  custom: {
    50: '#a888eb',
    500: '#7b57e1',
    950: '#000000',
  },
}
SCSS
$custom: #7b57e1;
$custom-light: #a888eb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b57e1",
  "rgb": {
    "r": 123,
    "g": 87,
    "b": 225
  },
  "hsl": {
    "h": 255.652,
    "s": 69.697,
    "l": 61.176
  },
  "oklch": {
    "l": 0.56806,
    "c": 0.19998,
    "h": 290.6
  },
  "luminance": 0.16464
}

Semantic roles & 50–950 ramp

primary
#7B57E1
secondary
#D6E4B0
accent
#D214A0
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B57E1

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

Preview Lab → · Contrast checker → · Palette generator →

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