#7D42CD#7D42CD

#7D42CD is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.6% C 0.204 H 298.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7D42CD
RGBrgb(125, 66, 205)
HSLhsl(265, 58%, 53%)
HSVhsv(265, 68%, 80%)
CMYKcmyk(39%, 67.8%, 0%, 19.6%)
CIE-LABlab(42.25, 53.20, -62.67)
CIE-LCHlch(42.25, 82.21, 310.32°)
OKLaboklab(52.55% 0.0974 -0.1788)
OKLCHoklch(52.55% 0.204 298.6)
XYZxyz(21.4223, 12.6639, 59.0615)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42CD #92CD42
analogous
#424CCD #7D42CD #C342CD
triadic
#7D42CD #CD7D42 #42CD7D
tetradic
#7D42CD #CD424C #92CD42 #42CDC3
square
#7D42CD #CD424C #92CD42 #42CDC3
split-complementary
#7D42CD #CDC342 #4CCD42
monochromatic
#441F76 #602CA6 #7D42CD #9E72DA #C0A3E7

Accessibility & contrast

On white

5.94
#7D42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7D42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42CD
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42CD#FFFFFF#000000##FFFFFF
##7D42CD1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#6A6382
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d42cd;
/* rgb */ color: rgb(125, 66, 205);
/* oklch */ color: oklch(52.6% 0.204 298.6);
Tailwind
colors: {
  custom: {
    50: '#a97add',
    500: '#7d42cd',
    950: '#000000',
  },
}
SCSS
$custom: #7d42cd;
$custom-light: #a97add;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42cd",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 265.468,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52555,
    "c": 0.20357,
    "h": 298.6
  },
  "luminance": 0.12664
}

Semantic roles & 50–950 ramp

primary
#7D42CD
secondary
#BAD397
accent
#E146A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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