#7C42BA#7C42BA

#7C42BA is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.182 H 302.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7C42BA
RGBrgb(124, 66, 186)
HSLhsl(269, 48%, 49%)
HSVhsv(269, 65%, 73%)
CMYKcmyk(33.3%, 64.5%, 0%, 27.1%)
CIE-LABlab(40.78, 48.24, -54.00)
CIE-LCHlch(40.78, 72.41, 311.77°)
OKLaboklab(51.04% 0.0981 -0.1533)
OKLCHoklch(51.04% 0.182 302.6)
XYZxyz(19.1213, 11.7267, 47.7010)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42BA #80BA42
analogous
#4244BA #7C42BA #B842BA
triadic
#7C42BA #BA7C42 #42BA7C
tetradic
#7C42BA #BA4244 #80BA42 #42BAB8
square
#7C42BA #BA4244 #80BA42 #42BAB8
split-complementary
#7C42BA #BAB842 #44BA42
monochromatic
#402260 #5E328D #7C42BA #9B6ECB #BA9BDB

Accessibility & contrast

On white

6.28
#7C42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C42BA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42BA#FFFFFF#000000##FFFFFF
##7C42BA1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#1860B7
Tritanopia (blue-blind)
#705C78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7c42ba;
/* rgb */ color: rgb(124, 66, 186);
/* oklch */ color: oklch(51.0% 0.182 302.6);
Tailwind
colors: {
  custom: {
    50: '#a67acf',
    500: '#7c42ba',
    950: '#000000',
  },
}
SCSS
$custom: #7c42ba;
$custom-light: #a67acf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42ba",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 269,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51041,
    "c": 0.18204,
    "h": 302.6
  },
  "luminance": 0.11727
}

Semantic roles & 50–950 ramp

primary
#7C42BA
secondary
#ADC890
accent
#D75196
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7C42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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