#7B42BB#7B42BB

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

Color values

HEX#7B42BB
RGBrgb(123, 66, 187)
HSLhsl(268, 48%, 50%)
HSVhsv(268, 65%, 73%)
CMYKcmyk(34.2%, 64.7%, 0%, 26.7%)
CIE-LABlab(40.73, 48.27, -54.68)
CIE-LCHlch(40.73, 72.94, 311.44°)
OKLaboklab(51% 0.0967 -0.1553)
OKLCHoklch(51% 0.183 301.9)
XYZxyz(19.0841, 11.6952, 48.2561)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42BB #82BB42
analogous
#4246BB #7B42BB #B742BB
triadic
#7B42BB #BB7B42 #42BB7B
tetradic
#7B42BB #BB4246 #82BB42 #42BBB7
square
#7B42BB #BB4246 #82BB42 #42BBB7
split-complementary
#7B42BB #BBB742 #46BB42
monochromatic
#3F2261 #5D328E #7B42BB #9A6ECC #BA9CDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B42BB#FFFFFF#000000##FFFFFF
##7B42BB1.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)
#005FBF
Deuteranopia (green-blind)
#135FB8
Tritanopia (blue-blind)
#6E5D79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b42bb;
/* rgb */ color: rgb(123, 66, 187);
/* oklch */ color: oklch(51.0% 0.183 301.9);
Tailwind
colors: {
  custom: {
    50: '#a67ad0',
    500: '#7b42bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b42bb;
$custom-light: #a67ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42bb",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 268.264,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51,
    "c": 0.18298,
    "h": 301.9
  },
  "luminance": 0.11695
}

Semantic roles & 50–950 ramp

primary
#7B42BB
secondary
#AEC891
accent
#D75098
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7B42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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