#7B40BF#7B40BF

#7B40BF is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.190 H 301.2°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7B40BF
RGBrgb(123, 64, 191)
HSLhsl(268, 50%, 50%)
HSVhsv(268, 66%, 75%)
CMYKcmyk(35.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(40.64, 50.28, -57.17)
CIE-LCHlch(40.64, 76.14, 311.33°)
OKLaboklab(51.02% 0.0985 -0.1626)
OKLCHoklch(51.02% 0.19 301.2)
XYZxyz(19.4035, 11.6392, 50.5045)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40BF #84BF40
analogous
#4044BF #7B40BF #BB40BF
triadic
#7B40BF #BF7B40 #40BF7B
tetradic
#7B40BF #BF4044 #84BF40 #40BFBB
square
#7B40BF #BF4044 #84BF40 #40BFBB
split-complementary
#7B40BF #BFBB40 #44BF40
monochromatic
#402163 #5D3191 #7B40BF #9B6ECE #BA9CDE

Accessibility & contrast

On white

6.31
#7B40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7B40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40BF
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40BF#FFFFFF#000000##FFFFFF
##7B40BF1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#6D5D7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b40bf;
/* rgb */ color: rgb(123, 64, 191);
/* oklch */ color: oklch(51.0% 0.190 301.2);
Tailwind
colors: {
  custom: {
    50: '#a679d3',
    500: '#7b40bf',
    950: '#000000',
  },
}
SCSS
$custom: #7b40bf;
$custom-light: #a679d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40bf",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 267.874,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.51024,
    "c": 0.19017,
    "h": 301.2
  },
  "luminance": 0.11639
}

Semantic roles & 50–950 ramp

primary
#7B40BF
secondary
#AFCA91
accent
#D94E99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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