#7B40C3#7B40C3

#7B40C3 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.195 H 300.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7B40C3
RGBrgb(123, 64, 195)
HSLhsl(267, 52%, 51%)
HSVhsv(267, 67%, 76%)
CMYKcmyk(36.9%, 67.2%, 0%, 23.5%)
CIE-LABlab(40.92, 51.28, -59.04)
CIE-LCHlch(40.92, 78.20, 310.98°)
OKLaboklab(51.32% 0.0981 -0.1681)
OKLCHoklch(51.32% 0.195 300.2)
XYZxyz(19.8497, 11.8177, 52.8545)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40C3 #88C340
analogous
#4046C3 #7B40C3 #BC40C3
triadic
#7B40C3 #C37B40 #40C37B
tetradic
#7B40C3 #C34046 #88C340 #40C3BC
square
#7B40C3 #C34046 #88C340 #40C3BC
split-complementary
#7B40C3 #C3BC40 #46C340
monochromatic
#412168 #5E2F97 #7B40C3 #9B6FD2 #BB9DE0

Accessibility & contrast

On white

6.24
#7B40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7B40C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40C3
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40C3#FFFFFF#000000##FFFFFF
##7B40C31.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#6B5E7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b40c3;
/* rgb */ color: rgb(123, 64, 195);
/* oklch */ color: oklch(51.3% 0.195 300.2);
Tailwind
colors: {
  custom: {
    50: '#a779d6',
    500: '#7b40c3',
    950: '#000000',
  },
}
SCSS
$custom: #7b40c3;
$custom-light: #a779d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40c3",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 267.023,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51321,
    "c": 0.19464,
    "h": 300.2
  },
  "luminance": 0.11818
}

Semantic roles & 50–950 ramp

primary
#7B40C3
secondary
#B2CC92
accent
#DC4C9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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