#7B57CC#7B57CC

#7B57CC is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.3% C 0.174 H 294.2°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7B57CC
RGBrgb(123, 87, 204)
HSLhsl(258, 53%, 57%)
HSVhsv(258, 57%, 80%)
CMYKcmyk(39.7%, 57.4%, 0%, 20%)
CIE-LABlab(46.16, 41.25, -55.79)
CIE-LCHlch(46.16, 69.38, 306.48°)
OKLaboklab(55.32% 0.0712 -0.1586)
OKLCHoklch(55.32% 0.174 294.2)
XYZxyz(22.4728, 15.3865, 58.9009)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B57CC #A8CC57
analogous
#576DCC #7B57CC #B657CC
triadic
#7B57CC #CC7B57 #57CC7B
tetradic
#7B57CC #CC576D #A8CC57 #57CCB6
square
#7B57CC #CC576D #A8CC57 #57CCB6
split-complementary
#7B57CC #CCB657 #6DCC57
monochromatic
#432781 #5B36B0 #7B57CC #A086DA #C5B5E9

Accessibility & contrast

On white

5.15
#7B57CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7B57CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B57CC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B57CC#FFFFFF#000000##FFFFFF
##7B57CC1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146FD0
Deuteranopia (green-blind)
#236BC9
Tritanopia (blue-blind)
#667089
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b57cc;
/* rgb */ color: rgb(123, 87, 204);
/* oklch */ color: oklch(55.3% 0.174 294.2);
Tailwind
colors: {
  custom: {
    50: '#a688dc',
    500: '#7b57cc',
    950: '#000000',
  },
}
SCSS
$custom: #7b57cc;
$custom-light: #a688dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b57cc",
  "rgb": {
    "r": 123,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 258.462,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55319,
    "c": 0.17389,
    "h": 294.2
  },
  "luminance": 0.15387
}

Semantic roles & 50–950 ramp

primary
#7B57CC
secondary
#C9D7A8
accent
#DD4BB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B57CC

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

Preview Lab → · Contrast checker → · Palette generator →

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