#7F42BB#7F42BB

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

Color values

HEX#7F42BB
RGBrgb(127, 66, 187)
HSLhsl(270, 48%, 50%)
HSVhsv(270, 65%, 73%)
CMYKcmyk(32.1%, 64.7%, 0%, 26.7%)
CIE-LABlab(41.21, 49.14, -53.88)
CIE-LCHlch(41.21, 72.92, 312.37°)
OKLaboklab(51.46% 0.1021 -0.1528)
OKLCHoklch(51.46% 0.184 303.7)
XYZxyz(19.6682, 11.9964, 48.2834)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42BB #7EBB42
analogous
#4342BB #7F42BB #BB42BB
triadic
#7F42BB #BB7F42 #42BB7F
tetradic
#7F42BB #BB4342 #7EBB42 #42BBBB
square
#7F42BB #BB4342 #7EBB42 #42BBBB
split-complementary
#7F42BB #BBBB42 #42BB43
monochromatic
#422261 #60328E #7F42BB #9D6ECC #BC9CDC

Accessibility & contrast

On white

6.18
#7F42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7F42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42BB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42BB#FFFFFF#000000##FFFFFF
##7F42BB1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#1C61B8
Tritanopia (blue-blind)
#745C79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f42bb;
/* rgb */ color: rgb(127, 66, 187);
/* oklch */ color: oklch(51.5% 0.184 303.7);
Tailwind
colors: {
  custom: {
    50: '#a87ad0',
    500: '#7f42bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f42bb;
$custom-light: #a87ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42bb",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 270.248,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51455,
    "c": 0.18382,
    "h": 303.7
  },
  "luminance": 0.11996
}

Semantic roles & 50–950 ramp

primary
#7F42BB
secondary
#ACC891
accent
#D75093
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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