#7D42BC#7D42BC

#7D42BC is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.185 H 302.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7D42BC
RGBrgb(125, 66, 188)
HSLhsl(269, 48%, 50%)
HSVhsv(269, 65%, 74%)
CMYKcmyk(33.5%, 64.9%, 0%, 26.3%)
CIE-LABlab(41.04, 48.95, -54.75)
CIE-LCHlch(41.04, 73.45, 311.80°)
OKLaboklab(51.3% 0.0993 -0.1555)
OKLCHoklch(51.3% 0.185 302.6)
XYZxyz(19.4806, 11.8872, 48.8354)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42BC #81BC42
analogous
#4244BC #7D42BC #BA42BC
triadic
#7D42BC #BC7D42 #42BC7D
tetradic
#7D42BC #BC4244 #81BC42 #42BCBA
square
#7D42BC #BC4244 #81BC42 #42BCBA
split-complementary
#7D42BC #BCBA42 #44BC42
monochromatic
#412261 #5F328F #7D42BC #9C6FCC #BB9CDC

Accessibility & contrast

On white

6.22
#7D42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7D42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42BC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42BC#FFFFFF#000000##FFFFFF
##7D42BC1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#1560B9
Tritanopia (blue-blind)
#705D79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d42bc;
/* rgb */ color: rgb(125, 66, 188);
/* oklch */ color: oklch(51.3% 0.185 302.6);
Tailwind
colors: {
  custom: {
    50: '#a77ad1',
    500: '#7d42bc',
    950: '#000000',
  },
}
SCSS
$custom: #7d42bc;
$custom-light: #a77ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42bc",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 269.016,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51298,
    "c": 0.18451,
    "h": 302.6
  },
  "luminance": 0.11887
}

Semantic roles & 50–950 ramp

primary
#7D42BC
secondary
#AEC991
accent
#D85096
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7D42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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