#7F42BC#7F42BC

#7F42BC is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.185 H 303.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7F42BC
RGBrgb(127, 66, 188)
HSLhsl(270, 48%, 50%)
HSVhsv(270, 65%, 74%)
CMYKcmyk(32.4%, 64.9%, 0%, 26.3%)
CIE-LABlab(41.28, 49.39, -54.35)
CIE-LCHlch(41.28, 73.44, 312.26°)
OKLaboklab(51.53% 0.102 -0.1542)
OKLCHoklch(51.53% 0.185 303.5)
XYZxyz(19.7756, 12.0393, 48.8492)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42BC #7FBC42
analogous
#4242BC #7F42BC #BC42BC
triadic
#7F42BC #BC7F42 #42BC7F
tetradic
#7F42BC #BC4242 #7FBC42 #42BCBC
square
#7F42BC #BC4242 #7FBC42 #42BCBC
split-complementary
#7F42BC #BCBC42 #42BC42
monochromatic
#422261 #60328F #7F42BC #9E6FCC #BC9CDC

Accessibility & contrast

On white

6.16
#7F42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7F42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42BC
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42BC#FFFFFF#000000##FFFFFF
##7F42BC1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#1A61B9
Tritanopia (blue-blind)
#735D79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f42bc;
/* rgb */ color: rgb(127, 66, 188);
/* oklch */ color: oklch(51.5% 0.185 303.5);
Tailwind
colors: {
  custom: {
    50: '#a87ad1',
    500: '#7f42bc',
    950: '#000000',
  },
}
SCSS
$custom: #7f42bc;
$custom-light: #a87ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42bc",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 270,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51526,
    "c": 0.18494,
    "h": 303.5
  },
  "luminance": 0.12039
}

Semantic roles & 50–950 ramp

primary
#7F42BC
secondary
#ADC991
accent
#D85094
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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