#7B5CC7#7B5CC7

#7B5CC7 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.8% C 0.160 H 293.9°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7B5CC7
RGBrgb(123, 92, 199)
HSLhsl(257, 49%, 57%)
HSVhsv(257, 54%, 78%)
CMYKcmyk(38.2%, 53.8%, 0%, 22%)
CIE-LABlab(46.96, 37.02, -51.63)
CIE-LCHlch(46.96, 63.53, 305.64°)
OKLaboklab(55.81% 0.065 -0.1464)
OKLCHoklch(55.81% 0.16 293.9)
XYZxyz(22.3016, 15.9883, 55.9328)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CC7 #A8C75C
analogous
#5C73C7 #7B5CC7 #B05CC7
triadic
#7B5CC7 #C77B5C #5CC77B
tetradic
#7B5CC7 #C75C73 #A8C75C #5CC7B0
square
#7B5CC7 #C75C73 #A8C75C #5CC7B0
split-complementary
#7B5CC7 #C7B05C #73C75C
monochromatic
#432B7D #5B3BAB #7B5CC7 #A08AD7 #C5B7E6

Accessibility & contrast

On white

5.00
#7B5CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7B5CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CC7
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CC7#FFFFFF#000000##FFFFFF
##7B5CC71.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D70CB
Deuteranopia (green-blind)
#346EC5
Tritanopia (blue-blind)
#687289
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b5cc7;
/* rgb */ color: rgb(123, 92, 199);
/* oklch */ color: oklch(55.8% 0.160 293.9);
Tailwind
colors: {
  custom: {
    50: '#a58bd9',
    500: '#7b5cc7',
    950: '#000000',
  },
}
SCSS
$custom: #7b5cc7;
$custom-light: #a58bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5cc7",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 199
  },
  "hsl": {
    "h": 257.383,
    "s": 48.858,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55809,
    "c": 0.16018,
    "h": 293.9
  },
  "luminance": 0.15989
}

Semantic roles & 50–950 ramp

primary
#7B5CC7
secondary
#C9D5AA
accent
#D84FB1
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7B5CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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