#7B42BC#7B42BC

#7B42BC is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.184 H 301.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7B42BC
RGBrgb(123, 66, 188)
HSLhsl(268, 48%, 50%)
HSVhsv(268, 65%, 74%)
CMYKcmyk(34.6%, 64.9%, 0%, 26.3%)
CIE-LABlab(40.80, 48.52, -55.15)
CIE-LCHlch(40.80, 73.46, 311.34°)
OKLaboklab(51.07% 0.0966 -0.1567)
OKLCHoklch(51.07% 0.184 301.7)
XYZxyz(19.1915, 11.7381, 48.8218)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42BC #83BC42
analogous
#4246BC #7B42BC #B842BC
triadic
#7B42BC #BC7B42 #42BC7B
tetradic
#7B42BC #BC4246 #83BC42 #42BCB8
square
#7B42BC #BC4246 #83BC42 #42BCB8
split-complementary
#7B42BC #BCB842 #46BC42
monochromatic
#402261 #5D328F #7B42BC #9B6FCC #BA9CDC

Accessibility & contrast

On white

6.27
#7B42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7B42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42BC
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42BC#FFFFFF#000000##FFFFFF
##7B42BC1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#1060B9
Tritanopia (blue-blind)
#6E5D79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b42bc;
/* rgb */ color: rgb(123, 66, 188);
/* oklch */ color: oklch(51.1% 0.184 301.7);
Tailwind
colors: {
  custom: {
    50: '#a67ad1',
    500: '#7b42bc',
    950: '#000000',
  },
}
SCSS
$custom: #7b42bc;
$custom-light: #a67ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42bc",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 268.033,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51072,
    "c": 0.18411,
    "h": 301.7
  },
  "luminance": 0.11738
}

Semantic roles & 50–950 ramp

primary
#7B42BC
secondary
#AFC991
accent
#D85098
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7B42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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