#7A57DB#7A57DB

#7A57DB is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.3% C 0.193 H 291.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7A57DB
RGBrgb(122, 87, 219)
HSLhsl(256, 65%, 60%)
HSVhsv(256, 60%, 86%)
CMYKcmyk(44.3%, 60.3%, 0%, 14.1%)
CIE-LABlab(47.06, 45.16, -62.92)
CIE-LCHlch(47.06, 77.44, 305.67°)
OKLaboklab(56.28% 0.0695 -0.1796)
OKLCHoklch(56.28% 0.193 291.2)
XYZxyz(24.2169, 16.0676, 68.8295)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A57DB #B8DB57
analogous
#5776DB #7A57DB #BC57DB
triadic
#7A57DB #DB7A57 #57DB7A
tetradic
#7A57DB #DB5776 #B8DB57 #57DBBC
square
#7A57DB #DB5776 #B8DB57 #57DBBC
split-complementary
#7A57DB #DBBC57 #76DB57
monochromatic
#402097 #552BCA #7A57DB #A289E6 #CABCF1

Accessibility & contrast

On white

4.98
#7A57DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7A57DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A57DB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A57DB#FFFFFF#000000##FFFFFF
##7A57DB1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#5D7591
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a57db;
/* rgb */ color: rgb(122, 87, 219);
/* oklch */ color: oklch(56.3% 0.193 291.2);
Tailwind
colors: {
  custom: {
    50: '#a788e7',
    500: '#7a57db',
    950: '#000000',
  },
}
SCSS
$custom: #7a57db;
$custom-light: #a788e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a57db",
  "rgb": {
    "r": 122,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 255.909,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.56277,
    "c": 0.19259,
    "h": 291.2
  },
  "luminance": 0.16068
}

Semantic roles & 50–950 ramp

primary
#7A57DB
secondary
#D3E0AD
accent
#E840BB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A57DB

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

Preview Lab → · Contrast checker → · Palette generator →

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