#7B40CE#7B40CE

#7B40CE is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.207 H 297.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7B40CE
RGBrgb(123, 64, 206)
HSLhsl(265, 59%, 53%)
HSVhsv(265, 69%, 81%)
CMYKcmyk(40.3%, 68.9%, 0%, 19.2%)
CIE-LABlab(41.74, 54.05, -64.09)
CIE-LCHlch(41.74, 83.84, 310.14°)
OKLaboklab(52.16% 0.0965 -0.183)
OKLCHoklch(52.16% 0.207 297.8)
XYZxyz(21.1395, 12.3336, 59.6474)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40CE #93CE40
analogous
#404CCE #7B40CE #C240CE
triadic
#7B40CE #CE7B40 #40CE7B
tetradic
#7B40CE #CE404C #93CE40 #40CEC2
square
#7B40CE #CE404C #93CE40 #40CEC2
split-complementary
#7B40CE #CEC240 #4CCE40
monochromatic
#421E75 #5E2BA6 #7B40CE #9D71DA #BEA1E7

Accessibility & contrast

On white

6.06
#7B40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7B40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40CE
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40CE#FFFFFF#000000##FFFFFF
##7B40CE1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D2
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#676282
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b40ce;
/* rgb */ color: rgb(123, 64, 206);
/* oklch */ color: oklch(52.2% 0.207 297.8);
Tailwind
colors: {
  custom: {
    50: '#a879de',
    500: '#7b40ce',
    950: '#000000',
  },
}
SCSS
$custom: #7b40ce;
$custom-light: #a879de;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40ce",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 264.93,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52162,
    "c": 0.20687,
    "h": 297.8
  },
  "luminance": 0.12334
}

Semantic roles & 50–950 ramp

primary
#7B40CE
secondary
#BAD496
accent
#E245A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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