#7F42BE#7F42BE

#7F42BE is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.187 H 303.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7F42BE
RGBrgb(127, 66, 190)
HSLhsl(270, 49%, 50%)
HSVhsv(270, 65%, 75%)
CMYKcmyk(33.2%, 65.3%, 0%, 25.5%)
CIE-LABlab(41.42, 49.88, -55.30)
CIE-LCHlch(41.42, 74.47, 312.05°)
OKLaboklab(51.67% 0.1019 -0.157)
OKLCHoklch(51.67% 0.187 303)
XYZxyz(19.9927, 12.1262, 49.9925)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42BE #81BE42
analogous
#4243BE #7F42BE #BD42BE
triadic
#7F42BE #BE7F42 #42BE7F
tetradic
#7F42BE #BE4243 #81BE42 #42BEBD
square
#7F42BE #BE4243 #81BE42 #42BEBD
split-complementary
#7F42BE #BEBD42 #43BE42
monochromatic
#422263 #613291 #7F42BE #9E70CE #BD9DDD

Accessibility & contrast

On white

6.13
#7F42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7F42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42BE
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42BE#FFFFFF#000000##FFFFFF
##7F42BE1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#1561BB
Tritanopia (blue-blind)
#735D7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f42be;
/* rgb */ color: rgb(127, 66, 190);
/* oklch */ color: oklch(51.7% 0.187 303.0);
Tailwind
colors: {
  custom: {
    50: '#a97ad2',
    500: '#7f42be',
    950: '#000000',
  },
}
SCSS
$custom: #7f42be;
$custom-light: #a97ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42be",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 269.516,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51669,
    "c": 0.18717,
    "h": 303
  },
  "luminance": 0.12126
}

Semantic roles & 50–950 ramp

primary
#7F42BE
secondary
#AECA92
accent
#D84F95
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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