#7B40BD#7B40BD

#7B40BD is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.188 H 301.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7B40BD
RGBrgb(123, 64, 189)
HSLhsl(268, 49%, 50%)
HSVhsv(268, 66%, 74%)
CMYKcmyk(34.9%, 66.1%, 0%, 25.9%)
CIE-LABlab(40.49, 49.79, -56.23)
CIE-LCHlch(40.49, 75.10, 311.52°)
OKLaboklab(50.88% 0.0988 -0.1599)
OKLCHoklch(50.88% 0.188 301.7)
XYZxyz(19.1849, 11.5518, 49.3532)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40BD #82BD40
analogous
#4044BD #7B40BD #BA40BD
triadic
#7B40BD #BD7B40 #40BD7B
tetradic
#7B40BD #BD4044 #82BD40 #40BDBA
square
#7B40BD #BD4044 #82BD40 #40BDBA
split-complementary
#7B40BD #BDBA40 #44BD40
monochromatic
#3F2162 #5D318F #7B40BD #9A6DCD #BA9ADD

Accessibility & contrast

On white

6.34
#7B40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7B40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40BD
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40BD#FFFFFF#000000##FFFFFF
##7B40BD1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC1
Deuteranopia (green-blind)
#035FBA
Tritanopia (blue-blind)
#6D5C79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7b40bd;
/* rgb */ color: rgb(123, 64, 189);
/* oklch */ color: oklch(50.9% 0.188 301.7);
Tailwind
colors: {
  custom: {
    50: '#a679d2',
    500: '#7b40bd',
    950: '#000000',
  },
}
SCSS
$custom: #7b40bd;
$custom-light: #a679d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40bd",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 268.32,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50877,
    "c": 0.18792,
    "h": 301.7
  },
  "luminance": 0.11552
}

Semantic roles & 50–950 ramp

primary
#7B40BD
secondary
#AEC990
accent
#D94F98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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