#7B42BE#7B42BE

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

Color values

HEX#7B42BE
RGBrgb(123, 66, 190)
HSLhsl(268, 49%, 50%)
HSVhsv(268, 65%, 75%)
CMYKcmyk(35.3%, 65.3%, 0%, 25.5%)
CIE-LABlab(40.94, 49.02, -56.10)
CIE-LCHlch(40.94, 74.50, 311.15°)
OKLaboklab(51.22% 0.0964 -0.1595)
OKLCHoklch(51.22% 0.186 301.2)
XYZxyz(19.4086, 11.8250, 49.9651)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42BE #85BE42
analogous
#4247BE #7B42BE #B942BE
triadic
#7B42BE #BE7B42 #42BE7B
tetradic
#7B42BE #BE4247 #85BE42 #42BEB9
square
#7B42BE #BE4247 #85BE42 #42BEB9
split-complementary
#7B42BE #BEB942 #47BE42
monochromatic
#402263 #5E3291 #7B42BE #9B70CE #BB9DDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B42BE#FFFFFF#000000##FFFFFF
##7B42BE1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#0760BB
Tritanopia (blue-blind)
#6D5E7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b42be;
/* rgb */ color: rgb(123, 66, 190);
/* oklch */ color: oklch(51.2% 0.186 301.2);
Tailwind
colors: {
  custom: {
    50: '#a67ad2',
    500: '#7b42be',
    950: '#000000',
  },
}
SCSS
$custom: #7b42be;
$custom-light: #a67ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42be",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 267.581,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51217,
    "c": 0.18639,
    "h": 301.2
  },
  "luminance": 0.11825
}

Semantic roles & 50–950 ramp

primary
#7B42BE
secondary
#B0CA92
accent
#D84F99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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