#7D42CF#7D42CF

#7D42CF is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.7% C 0.206 H 298.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7D42CF
RGBrgb(125, 66, 207)
HSLhsl(265, 59%, 54%)
HSVhsv(265, 68%, 81%)
CMYKcmyk(39.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(42.40, 53.70, -63.59)
CIE-LCHlch(42.40, 83.23, 310.18°)
OKLaboklab(52.71% 0.0971 -0.1815)
OKLCHoklch(52.71% 0.206 298.1)
XYZxyz(21.6653, 12.7611, 60.3411)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42CF #94CF42
analogous
#424DCF #7D42CF #C342CF
triadic
#7D42CF #CF7D42 #42CF7D
tetradic
#7D42CF #CF424D #94CF42 #42CFC3
square
#7D42CF #CF424D #94CF42 #42CFC3
split-complementary
#7D42CF #CFC342 #4DCF42
monochromatic
#441F78 #602BA9 #7D42CF #9F73DB #C0A4E8

Accessibility & contrast

On white

5.91
#7D42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7D42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42CF
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42CF#FFFFFF#000000##FFFFFF
##7D42CF1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0063CC
Tritanopia (blue-blind)
#696483
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d42cf;
/* rgb */ color: rgb(125, 66, 207);
/* oklch */ color: oklch(52.7% 0.206 298.1);
Tailwind
colors: {
  custom: {
    50: '#a97bdf',
    500: '#7d42cf',
    950: '#000000',
  },
}
SCSS
$custom: #7d42cf;
$custom-light: #a97bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42cf",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 265.106,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52708,
    "c": 0.20579,
    "h": 298.1
  },
  "luminance": 0.12761
}

Semantic roles & 50–950 ramp

primary
#7D42CF
secondary
#BBD598
accent
#E345A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7D42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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