#7B57BA#7B57BA

#7B57BA is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.1% C 0.151 H 298.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7B57BA
RGBrgb(123, 87, 186)
HSLhsl(262, 42%, 54%)
HSVhsv(262, 53%, 73%)
CMYKcmyk(33.9%, 53.2%, 0%, 27.1%)
CIE-LABlab(45.04, 36.43, -47.16)
CIE-LCHlch(45.04, 59.59, 307.69°)
OKLaboklab(54.14% 0.0707 -0.1333)
OKLCHoklch(54.14% 0.151 298)
XYZxyz(20.4373, 14.5723, 48.1808)
Luminance0.1457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B57BA #96BA57
analogous
#5764BA #7B57BA #AC57BA
triadic
#7B57BA #BA7B57 #57BA7B
tetradic
#7B57BA #BA5764 #96BA57 #57BAAC
square
#7B57BA #BA5764 #96BA57 #57BAAC
split-complementary
#7B57BA #BAAC57 #64BA57
monochromatic
#432C6B #5E3E96 #7B57BA #9D82CC #BFAEDE

Accessibility & contrast

On white

5.36
#7B57BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7B57BA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B57BA#FFFFFF#000000##FFFFFF
##7B57BA1.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306BBD
Deuteranopia (green-blind)
#3A6AB8
Tritanopia (blue-blind)
#6D6B80
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7b57ba;
/* rgb */ color: rgb(123, 87, 186);
/* oklch */ color: oklch(54.1% 0.151 298.0);
Tailwind
colors: {
  custom: {
    50: '#a487cf',
    500: '#7b57ba',
    950: '#000000',
  },
}
SCSS
$custom: #7b57ba;
$custom-light: #a487cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b57ba",
  "rgb": {
    "r": 123,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 261.818,
    "s": 41.772,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54137,
    "c": 0.15091,
    "h": 298
  },
  "luminance": 0.14573
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B57BA

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

Preview Lab → · Contrast checker → · Palette generator →

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