#7B40C0#7B40C0

#7B40C0 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.191 H 301.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7B40C0
RGBrgb(123, 64, 192)
HSLhsl(268, 50%, 50%)
HSVhsv(268, 67%, 75%)
CMYKcmyk(35.9%, 66.7%, 0%, 24.7%)
CIE-LABlab(40.71, 50.53, -57.64)
CIE-LCHlch(40.71, 76.65, 311.24°)
OKLaboklab(51.1% 0.0984 -0.164)
OKLCHoklch(51.1% 0.191 301)
XYZxyz(19.5139, 11.6834, 51.0860)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40C0 #85C040
analogous
#4045C0 #7B40C0 #BB40C0
triadic
#7B40C0 #C07B40 #40C07B
tetradic
#7B40C0 #C04045 #85C040 #40C0BB
square
#7B40C0 #C04045 #85C040 #40C0BB
split-complementary
#7B40C0 #C0BB40 #45C040
monochromatic
#402164 #5E3092 #7B40C0 #9B6ECF #BB9CDE

Accessibility & contrast

On white

6.29
#7B40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7B40C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40C0
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40C0#FFFFFF#000000##FFFFFF
##7B40C01.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC4
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#6C5D7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b40c0;
/* rgb */ color: rgb(123, 64, 192);
/* oklch */ color: oklch(51.1% 0.191 301.0);
Tailwind
colors: {
  custom: {
    50: '#a679d4',
    500: '#7b40c0',
    950: '#000000',
  },
}
SCSS
$custom: #7b40c0;
$custom-light: #a679d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40c0",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 267.656,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51098,
    "c": 0.19129,
    "h": 301
  },
  "luminance": 0.11684
}

Semantic roles & 50–950 ramp

primary
#7B40C0
secondary
#B0CB91
accent
#DA4E99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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