#7B5BB2#7B5BB2

#7B5BB2 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.3% C 0.134 H 298.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7B5BB2
RGBrgb(123, 91, 178)
HSLhsl(262, 36%, 53%)
HSVhsv(262, 49%, 70%)
CMYKcmyk(30.9%, 48.9%, 0%, 30.2%)
CIE-LABlab(45.51, 32.00, -41.75)
CIE-LCHlch(45.51, 52.60, 307.47°)
OKLaboklab(54.33% 0.0647 -0.1175)
OKLCHoklch(54.33% 0.134 298.8)
XYZxyz(19.9434, 14.9073, 43.9375)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5BB2 #92B25B
analogous
#5B66B2 #7B5BB2 #A75BB2
triadic
#7B5BB2 #B27B5B #5BB27B
tetradic
#7B5BB2 #B25B66 #92B25B #5BB2A7
square
#7B5BB2 #B25B66 #92B25B #5BB2A7
split-complementary
#7B5BB2 #B2A75B #66B25B
monochromatic
#422F64 #5E428D #7B5BB2 #9D85C6 #BEAED9

Accessibility & contrast

On white

5.27
#7B5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7B5BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5BB2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5BB2#FFFFFF#000000##FFFFFF
##7B5BB21.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#466BB0
Tritanopia (blue-blind)
#706B7E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b5bb2;
/* rgb */ color: rgb(123, 91, 178);
/* oklch */ color: oklch(54.3% 0.134 298.8);
Tailwind
colors: {
  custom: {
    50: '#a48ac9',
    500: '#7b5bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7b5bb2;
$custom-light: #a48ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5bb2",
  "rgb": {
    "r": 123,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 262.069,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54334,
    "c": 0.1341,
    "h": 298.8
  },
  "luminance": 0.14907
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B5BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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