#7C42BB#7C42BB

#7C42BB is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.183 H 302.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7C42BB
RGBrgb(124, 66, 187)
HSLhsl(269, 48%, 50%)
HSVhsv(269, 65%, 73%)
CMYKcmyk(33.7%, 64.7%, 0%, 26.7%)
CIE-LABlab(40.85, 48.49, -54.48)
CIE-LCHlch(40.85, 72.93, 311.67°)
OKLaboklab(51.11% 0.0981 -0.1547)
OKLCHoklch(51.11% 0.183 302.4)
XYZxyz(19.2279, 11.7693, 48.2628)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42BB #81BB42
analogous
#4245BB #7C42BB #B842BB
triadic
#7C42BB #BB7C42 #42BB7C
tetradic
#7C42BB #BB4245 #81BB42 #42BBB8
square
#7C42BB #BB4245 #81BB42 #42BBB8
split-complementary
#7C42BB #BBB842 #45BB42
monochromatic
#402261 #5E328E #7C42BB #9B6ECC #BA9CDC

Accessibility & contrast

On white

6.26
#7C42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C42BB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42BB#FFFFFF#000000##FFFFFF
##7C42BB1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#1560B8
Tritanopia (blue-blind)
#6F5D79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7c42bb;
/* rgb */ color: rgb(124, 66, 187);
/* oklch */ color: oklch(51.1% 0.183 302.4);
Tailwind
colors: {
  custom: {
    50: '#a67ad0',
    500: '#7c42bb',
    950: '#000000',
  },
}
SCSS
$custom: #7c42bb;
$custom-light: #a67ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42bb",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 268.76,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51113,
    "c": 0.18318,
    "h": 302.4
  },
  "luminance": 0.11769
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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