#7B40C1#7B40C1

#7B40C1 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.2% C 0.192 H 300.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7B40C1
RGBrgb(123, 64, 193)
HSLhsl(267, 51%, 50%)
HSVhsv(267, 67%, 76%)
CMYKcmyk(36.3%, 66.8%, 0%, 24.3%)
CIE-LABlab(40.78, 50.78, -58.10)
CIE-LCHlch(40.78, 77.17, 311.15°)
OKLaboklab(51.17% 0.0983 -0.1654)
OKLCHoklch(51.17% 0.192 300.7)
XYZxyz(19.6251, 11.7279, 51.6715)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40C1 #86C140
analogous
#4045C1 #7B40C1 #BB40C1
triadic
#7B40C1 #C17B40 #40C17B
tetradic
#7B40C1 #C14045 #86C140 #40C1BB
square
#7B40C1 #C14045 #86C140 #40C1BB
split-complementary
#7B40C1 #C1BB40 #45C140
monochromatic
#402166 #5E3094 #7B40C1 #9B6ED0 #BB9CDF

Accessibility & contrast

On white

6.28
#7B40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7B40C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40C1
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40C1#FFFFFF#000000##FFFFFF
##7B40C11.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#005FBE
Tritanopia (blue-blind)
#6C5E7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b40c1;
/* rgb */ color: rgb(123, 64, 193);
/* oklch */ color: oklch(51.2% 0.192 300.7);
Tailwind
colors: {
  custom: {
    50: '#a679d5',
    500: '#7b40c1',
    950: '#000000',
  },
}
SCSS
$custom: #7b40c1;
$custom-light: #a679d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40c1",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 267.442,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51172,
    "c": 0.19241,
    "h": 300.7
  },
  "luminance": 0.11728
}

Semantic roles & 50–950 ramp

primary
#7B40C1
secondary
#B1CB92
accent
#DA4D9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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