#7B57BB#7B57BB

#7B57BB is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.2% C 0.152 H 297.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7B57BB
RGBrgb(123, 87, 187)
HSLhsl(262, 42%, 54%)
HSVhsv(262, 53%, 73%)
CMYKcmyk(34.2%, 53.5%, 0%, 26.7%)
CIE-LABlab(45.10, 36.70, -47.65)
CIE-LCHlch(45.10, 60.14, 307.60°)
OKLaboklab(54.2% 0.0708 -0.1347)
OKLCHoklch(54.2% 0.152 297.7)
XYZxyz(20.5440, 14.6149, 48.7427)
Luminance0.1462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B57BB #97BB57
analogous
#5765BB #7B57BB #AD57BB
triadic
#7B57BB #BB7B57 #57BB7B
tetradic
#7B57BB #BB5765 #97BB57 #57BBAD
square
#7B57BB #BB5765 #97BB57 #57BBAD
split-complementary
#7B57BB #BBAD57 #65BB57
monochromatic
#432C6C #5E3D97 #7B57BB #9D83CD #BFAEDE

Accessibility & contrast

On white

5.35
#7B57BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7B57BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B57BB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B57BB#FFFFFF#000000##FFFFFF
##7B57BB1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6BBE
Deuteranopia (green-blind)
#396AB9
Tritanopia (blue-blind)
#6D6B81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7b57bb;
/* rgb */ color: rgb(123, 87, 187);
/* oklch */ color: oklch(54.2% 0.152 297.7);
Tailwind
colors: {
  custom: {
    50: '#a587d0',
    500: '#7b57bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b57bb;
$custom-light: #a587d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b57bb",
  "rgb": {
    "r": 123,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 261.6,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.542,
    "c": 0.1522,
    "h": 297.7
  },
  "luminance": 0.14615
}

Semantic roles & 50–950 ramp

primary
#7B57BB
secondary
#BDCCA2
accent
#D256A5
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7B57BB

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

Preview Lab → · Contrast checker → · Palette generator →

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