#7B5CBE#7B5CBE

#7B5CBE is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.2% C 0.148 H 295.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7B5CBE
RGBrgb(123, 92, 190)
HSLhsl(259, 43%, 55%)
HSVhsv(259, 52%, 75%)
CMYKcmyk(35.3%, 51.6%, 0%, 25.5%)
CIE-LABlab(46.42, 34.58, -47.28)
CIE-LCHlch(46.42, 58.58, 306.18°)
OKLaboklab(55.24% 0.0645 -0.1336)
OKLCHoklch(55.24% 0.148 295.8)
XYZxyz(21.2874, 15.5826, 50.5914)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CBE #9FBE5C
analogous
#5C6EBE #7B5CBE #AC5CBE
triadic
#7B5CBE #BE7B5C #5CBE7B
tetradic
#7B5CBE #BE5C6E #9FBE5C #5CBEAC
square
#7B5CBE #BE5C6E #9FBE5C #5CBEAC
split-complementary
#7B5CBE #BEAC5C #6EBE5C
monochromatic
#432E72 #5D3F9E #7B5CBE #9E88CF #C2B4E1

Accessibility & contrast

On white

5.10
#7B5CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7B5CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CBE
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CBE#FFFFFF#000000##FFFFFF
##7B5CBE1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366FC1
Deuteranopia (green-blind)
#3E6DBC
Tritanopia (blue-blind)
#6B6F84
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7b5cbe;
/* rgb */ color: rgb(123, 92, 190);
/* oklch */ color: oklch(55.2% 0.148 295.8);
Tailwind
colors: {
  custom: {
    50: '#a48bd2',
    500: '#7b5cbe',
    950: '#000000',
  },
}
SCSS
$custom: #7b5cbe;
$custom-light: #a48bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5cbe",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 190
  },
  "hsl": {
    "h": 258.98,
    "s": 42.982,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55237,
    "c": 0.14839,
    "h": 295.8
  },
  "luminance": 0.15583
}

Semantic roles & 50–950 ramp

primary
#7B5CBE
secondary
#C2CFA6
accent
#D355AB
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7B5CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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