#7C42BF#7C42BF

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

Color values

HEX#7C42BF
RGBrgb(124, 66, 191)
HSLhsl(268, 49%, 50%)
HSVhsv(268, 65%, 75%)
CMYKcmyk(35.1%, 65.4%, 0%, 25.1%)
CIE-LABlab(41.13, 49.48, -56.37)
CIE-LCHlch(41.13, 75.01, 311.28°)
OKLaboklab(51.4% 0.0977 -0.1603)
OKLCHoklch(51.4% 0.188 301.4)
XYZxyz(19.6621, 11.9430, 50.5495)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42BF #85BF42
analogous
#4246BF #7C42BF #BA42BF
triadic
#7C42BF #BF7C42 #42BF7C
tetradic
#7C42BF #BF4246 #85BF42 #42BFBA
square
#7C42BF #BF4246 #85BF42 #42BFBA
split-complementary
#7C42BF #BFBA42 #46BF42
monochromatic
#412265 #5E3292 #7C42BF #9C70CE #BB9DDE

Accessibility & contrast

On white

6.20
#7C42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7C42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42BF
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42BF#FFFFFF#000000##FFFFFF
##7C42BF1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c42bf;
/* rgb */ color: rgb(124, 66, 191);
/* oklch */ color: oklch(51.4% 0.188 301.4);
Tailwind
colors: {
  custom: {
    50: '#a77ad3',
    500: '#7c42bf',
    950: '#000000',
  },
}
SCSS
$custom: #7c42bf;
$custom-light: #a77ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42bf",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 267.84,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51402,
    "c": 0.1877,
    "h": 301.4
  },
  "luminance": 0.11943
}

Semantic roles & 50–950 ramp

primary
#7C42BF
secondary
#B0CA93
accent
#D94F99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7C42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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