#7B5CB1#7B5CB1

#7B5CB1 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.5% C 0.131 H 298.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7B5CB1
RGBrgb(123, 92, 177)
HSLhsl(262, 35%, 53%)
HSVhsv(262, 48%, 69%)
CMYKcmyk(30.5%, 48%, 0%, 30.6%)
CIE-LABlab(45.69, 31.15, -40.87)
CIE-LCHlch(45.69, 51.39, 307.31°)
OKLaboklab(54.45% 0.0632 -0.1149)
OKLCHoklch(54.45% 0.131 298.8)
XYZxyz(19.9295, 15.0394, 43.4394)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CB1 #92B15C
analogous
#5C67B1 #7B5CB1 #A55CB1
triadic
#7B5CB1 #B17B5C #5CB17B
tetradic
#7B5CB1 #B15C67 #92B15C #5CB1A5
square
#7B5CB1 #B15C67 #92B15C #5CB1A5
split-complementary
#7B5CB1 #B1A55C #67B15C
monochromatic
#422F63 #5E438D #7B5CB1 #9D85C5 #BEAFD9

Accessibility & contrast

On white

5.24
#7B5CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7B5CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CB1
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CB1#FFFFFF#000000##FFFFFF
##7B5CB11.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416CB4
Deuteranopia (green-blind)
#486BAF
Tritanopia (blue-blind)
#706C7E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b5cb1;
/* rgb */ color: rgb(123, 92, 177);
/* oklch */ color: oklch(54.5% 0.131 298.8);
Tailwind
colors: {
  custom: {
    50: '#a38bc9',
    500: '#7b5cb1',
    950: '#000000',
  },
}
SCSS
$custom: #7b5cb1;
$custom-light: #a38bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5cb1",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 177
  },
  "hsl": {
    "h": 261.882,
    "s": 35.27,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54451,
    "c": 0.13114,
    "h": 298.8
  },
  "luminance": 0.1504
}

Semantic roles & 50–950 ramp

primary
#7B5CB1
secondary
#B9C7A2
accent
#CB5CA3
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7B5CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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