#7D42BF#7D42BF

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

Color values

HEX#7D42BF
RGBrgb(125, 66, 191)
HSLhsl(268, 49%, 50%)
HSVhsv(268, 65%, 75%)
CMYKcmyk(34.6%, 65.4%, 0%, 25.1%)
CIE-LABlab(41.24, 49.69, -56.17)
CIE-LCHlch(41.24, 75.00, 311.50°)
OKLaboklab(51.51% 0.0991 -0.1597)
OKLCHoklch(51.51% 0.188 301.8)
XYZxyz(19.8074, 12.0179, 50.5563)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42BF #84BF42
analogous
#4245BF #7D42BF #BB42BF
triadic
#7D42BF #BF7D42 #42BF7D
tetradic
#7D42BF #BF4245 #84BF42 #42BFBB
square
#7D42BF #BF4245 #84BF42 #42BFBB
split-complementary
#7D42BF #BFBB42 #45BF42
monochromatic
#412265 #5F3292 #7D42BF #9C70CE #BC9DDE

Accessibility & contrast

On white

6.17
#7D42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D42BF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42BF#FFFFFF#000000##FFFFFF
##7D42BF1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#0B61BC
Tritanopia (blue-blind)
#6F5E7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d42bf;
/* rgb */ color: rgb(125, 66, 191);
/* oklch */ color: oklch(51.5% 0.188 301.8);
Tailwind
colors: {
  custom: {
    50: '#a77ad3',
    500: '#7d42bf',
    950: '#000000',
  },
}
SCSS
$custom: #7d42bf;
$custom-light: #a77ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42bf",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 268.32,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51514,
    "c": 0.18789,
    "h": 301.8
  },
  "luminance": 0.12018
}

Semantic roles & 50–950 ramp

primary
#7D42BF
secondary
#B0CA93
accent
#D94F98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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