#7D42D3#7D42D3

#7D42D3 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.0% C 0.210 H 297.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7D42D3
RGBrgb(125, 66, 211)
HSLhsl(264, 62%, 54%)
HSVhsv(264, 69%, 83%)
CMYKcmyk(40.8%, 68.7%, 0%, 17.3%)
CIE-LABlab(42.70, 54.72, -65.40)
CIE-LCHlch(42.70, 85.27, 309.92°)
OKLaboklab(53.02% 0.0964 -0.1868)
OKLCHoklch(53.02% 0.21 297.3)
XYZxyz(22.1605, 12.9592, 62.9492)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42D3 #98D342
analogous
#4250D3 #7D42D3 #C642D3
triadic
#7D42D3 #D37D42 #42D37D
tetradic
#7D42D3 #D34250 #98D342 #42D3C6
square
#7D42D3 #D34250 #98D342 #42D3C6
split-complementary
#7D42D3 #D3C642 #50D342
monochromatic
#441D7D #5F29AF #7D42D3 #9F74DF #C1A5EA

Accessibility & contrast

On white

5.85
#7D42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7D42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42D3
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42D3#FFFFFF#000000##FFFFFF
##7D42D31.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#0063D0
Tritanopia (blue-blind)
#676586
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d42d3;
/* rgb */ color: rgb(125, 66, 211);
/* oklch */ color: oklch(53.0% 0.210 297.3);
Tailwind
colors: {
  custom: {
    50: '#a97be1',
    500: '#7d42d3',
    950: '#000000',
  },
}
SCSS
$custom: #7d42d3;
$custom-light: #a97be1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42d3",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 264.414,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53017,
    "c": 0.21023,
    "h": 297.3
  },
  "luminance": 0.1296
}

Semantic roles & 50–950 ramp

primary
#7D42D3
secondary
#BED79A
accent
#E542A3
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7D42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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