#7B42BF#7B42BF

#7B42BF is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.188 H 300.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7B42BF
RGBrgb(123, 66, 191)
HSLhsl(267, 49%, 50%)
HSVhsv(267, 65%, 75%)
CMYKcmyk(35.6%, 65.4%, 0%, 25.1%)
CIE-LABlab(41.01, 49.27, -56.57)
CIE-LCHlch(41.01, 75.02, 311.05°)
OKLaboklab(51.29% 0.0963 -0.1609)
OKLCHoklch(51.29% 0.188 300.9)
XYZxyz(19.5183, 11.8689, 50.5427)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42BF #86BF42
analogous
#4247BF #7B42BF #B942BF
triadic
#7B42BF #BF7B42 #42BF7B
tetradic
#7B42BF #BF4247 #86BF42 #42BFB9
square
#7B42BF #BF4247 #86BF42 #42BFB9
split-complementary
#7B42BF #BFB942 #47BF42
monochromatic
#402265 #5E3292 #7B42BF #9B70CE #BB9DDE

Accessibility & contrast

On white

6.22
#7B42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7B42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42BF
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42BF#FFFFFF#000000##FFFFFF
##7B42BF1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#0360BC
Tritanopia (blue-blind)
#6C5E7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b42bf;
/* rgb */ color: rgb(123, 66, 191);
/* oklch */ color: oklch(51.3% 0.188 300.9);
Tailwind
colors: {
  custom: {
    50: '#a67ad3',
    500: '#7b42bf',
    950: '#000000',
  },
}
SCSS
$custom: #7b42bf;
$custom-light: #a67ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42bf",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 267.36,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5129,
    "c": 0.18752,
    "h": 300.9
  },
  "luminance": 0.11869
}

Semantic roles & 50–950 ramp

primary
#7B42BF
secondary
#B1CA93
accent
#D94F9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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