#7B40BE#7B40BE

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

Color values

HEX#7B40BE
RGBrgb(123, 64, 190)
HSLhsl(268, 50%, 50%)
HSVhsv(268, 66%, 75%)
CMYKcmyk(35.3%, 66.3%, 0%, 25.5%)
CIE-LABlab(40.57, 50.04, -56.70)
CIE-LCHlch(40.57, 75.62, 311.43°)
OKLaboklab(50.95% 0.0987 -0.1613)
OKLCHoklch(50.95% 0.189 301.5)
XYZxyz(19.2938, 11.5954, 49.9269)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40BE #83BE40
analogous
#4044BE #7B40BE #BA40BE
triadic
#7B40BE #BE7B40 #40BE7B
tetradic
#7B40BE #BE4044 #83BE40 #40BEBA
square
#7B40BE #BE4044 #83BE40 #40BEBA
split-complementary
#7B40BE #BEBA40 #44BE40
monochromatic
#402162 #5D3190 #7B40BE #9B6DCE #BA9BDD

Accessibility & contrast

On white

6.33
#7B40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7B40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40BE
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40BE#FFFFFF#000000##FFFFFF
##7B40BE1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#005FBB
Tritanopia (blue-blind)
#6D5C79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b40be;
/* rgb */ color: rgb(123, 64, 190);
/* oklch */ color: oklch(50.9% 0.189 301.5);
Tailwind
colors: {
  custom: {
    50: '#a679d2',
    500: '#7b40be',
    950: '#000000',
  },
}
SCSS
$custom: #7b40be;
$custom-light: #a679d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40be",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 268.095,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5095,
    "c": 0.18905,
    "h": 301.5
  },
  "luminance": 0.11595
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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