#7B57D2#7B57D2

#7B57D2 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.7% C 0.181 H 293.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7B57D2
RGBrgb(123, 87, 210)
HSLhsl(258, 58%, 58%)
HSVhsv(258, 59%, 82%)
CMYKcmyk(41.4%, 58.6%, 0%, 17.6%)
CIE-LABlab(46.55, 42.89, -58.60)
CIE-LCHlch(46.55, 72.62, 306.20°)
OKLaboklab(55.73% 0.0711 -0.1669)
OKLCHoklch(55.73% 0.181 293.1)
XYZxyz(23.2063, 15.6799, 62.7641)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B57D2 #AED257
analogous
#5770D2 #7B57D2 #B857D2
triadic
#7B57D2 #D27B57 #57D27B
tetradic
#7B57D2 #D25770 #AED257 #57D2B8
square
#7B57D2 #D25770 #AED257 #57D2B8
split-complementary
#7B57D2 #D2B857 #70D257
monochromatic
#42258A #5A32BA #7B57D2 #A187DF #C7B8EC

Accessibility & contrast

On white

5.08
#7B57D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7B57D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B57D2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B57D2#FFFFFF#000000##FFFFFF
##7B57D21.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D6
Deuteranopia (green-blind)
#166CCF
Tritanopia (blue-blind)
#64728C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7b57d2;
/* rgb */ color: rgb(123, 87, 210);
/* oklch */ color: oklch(55.7% 0.181 293.1);
Tailwind
colors: {
  custom: {
    50: '#a788e0',
    500: '#7b57d2',
    950: '#000000',
  },
}
SCSS
$custom: #7b57d2;
$custom-light: #a788e0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b57d2",
  "rgb": {
    "r": 123,
    "g": 87,
    "b": 210
  },
  "hsl": {
    "h": 257.561,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.55733,
    "c": 0.18143,
    "h": 293.1
  },
  "luminance": 0.1568
}

Semantic roles & 50–950 ramp

primary
#7B57D2
secondary
#CDDBAA
accent
#E147B4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B57D2

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

Preview Lab → · Contrast checker → · Palette generator →

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