#7F42BF#7F42BF

#7F42BF is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.7% C 0.188 H 302.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7F42BF
RGBrgb(127, 66, 191)
HSLhsl(269, 49%, 50%)
HSVhsv(269, 65%, 75%)
CMYKcmyk(33.5%, 65.4%, 0%, 25.1%)
CIE-LABlab(41.48, 50.12, -55.77)
CIE-LCHlch(41.48, 74.98, 311.95°)
OKLaboklab(51.74% 0.1018 -0.1584)
OKLCHoklch(51.74% 0.188 302.7)
XYZxyz(20.1024, 12.1700, 50.5701)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42BF #82BF42
analogous
#4243BF #7F42BF #BD42BF
triadic
#7F42BF #BF7F42 #42BF7F
tetradic
#7F42BF #BF4243 #82BF42 #42BFBD
square
#7F42BF #BF4243 #82BF42 #42BFBD
split-complementary
#7F42BF #BFBD42 #43BF42
monochromatic
#432265 #613292 #7F42BF #9E70CE #BD9DDE

Accessibility & contrast

On white

6.12
#7F42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F42BF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42BF#FFFFFF#000000##FFFFFF
##7F42BF1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#1261BC
Tritanopia (blue-blind)
#725E7B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f42bf;
/* rgb */ color: rgb(127, 66, 191);
/* oklch */ color: oklch(51.7% 0.188 302.7);
Tailwind
colors: {
  custom: {
    50: '#a97ad3',
    500: '#7f42bf',
    950: '#000000',
  },
}
SCSS
$custom: #7f42bf;
$custom-light: #a97ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42bf",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 269.28,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5174,
    "c": 0.18829,
    "h": 302.7
  },
  "luminance": 0.1217
}

Semantic roles & 50–950 ramp

primary
#7F42BF
secondary
#AFCA93
accent
#D94F96
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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