#7B40CF#7B40CF

#7B40CF is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.208 H 297.6°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7B40CF
RGBrgb(123, 64, 207)
HSLhsl(265, 60%, 53%)
HSVhsv(265, 69%, 81%)
CMYKcmyk(40.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(41.82, 54.31, -64.55)
CIE-LCHlch(41.82, 84.35, 310.08°)
OKLaboklab(52.24% 0.0963 -0.1843)
OKLCHoklch(52.24% 0.208 297.6)
XYZxyz(21.2614, 12.3824, 60.2892)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40CF #94CF40
analogous
#404CCF #7B40CF #C240CF
triadic
#7B40CF #CF7B40 #40CF7B
tetradic
#7B40CF #CF404C #94CF40 #40CFC2
square
#7B40CF #CF404C #94CF40 #40CFC2
split-complementary
#7B40CF #CFC240 #4CCF40
monochromatic
#431E77 #5E2AA8 #7B40CF #9D71DB #BFA2E8

Accessibility & contrast

On white

6.04
#7B40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7B40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40CF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40CF#FFFFFF#000000##FFFFFF
##7B40CF1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#666383
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b40cf;
/* rgb */ color: rgb(123, 64, 207);
/* oklch */ color: oklch(52.2% 0.208 297.6);
Tailwind
colors: {
  custom: {
    50: '#a879df',
    500: '#7b40cf',
    950: '#000000',
  },
}
SCSS
$custom: #7b40cf;
$custom-light: #a879df;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40cf",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 264.755,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5224,
    "c": 0.20798,
    "h": 297.6
  },
  "luminance": 0.12383
}

Semantic roles & 50–950 ramp

primary
#7B40CF
secondary
#BBD497
accent
#E345A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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