#7D42D2#7D42D2

#7D42D2 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.9% C 0.209 H 297.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7D42D2
RGBrgb(125, 66, 210)
HSLhsl(265, 62%, 54%)
HSVhsv(265, 69%, 82%)
CMYKcmyk(40.5%, 68.6%, 0%, 17.6%)
CIE-LABlab(42.63, 54.46, -64.95)
CIE-LCHlch(42.63, 84.76, 309.98°)
OKLaboklab(52.94% 0.0966 -0.1855)
OKLCHoklch(52.94% 0.209 297.5)
XYZxyz(22.0355, 12.9092, 62.2910)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42D2 #97D242
analogous
#424FD2 #7D42D2 #C542D2
triadic
#7D42D2 #D27D42 #42D27D
tetradic
#7D42D2 #D2424F #97D242 #42D2C5
square
#7D42D2 #D2424F #97D242 #42D2C5
split-complementary
#7D42D2 #D2C542 #4FD242
monochromatic
#441E7C #5F29AD #7D42D2 #9F73DE #C1A5EA

Accessibility & contrast

On white

5.86
#7D42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7D42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42D2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42D2#FFFFFF#000000##FFFFFF
##7D42D21.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0063CF
Tritanopia (blue-blind)
#686585
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d42d2;
/* rgb */ color: rgb(125, 66, 210);
/* oklch */ color: oklch(52.9% 0.209 297.5);
Tailwind
colors: {
  custom: {
    50: '#a97be1',
    500: '#7d42d2',
    950: '#000000',
  },
}
SCSS
$custom: #7d42d2;
$custom-light: #a97be1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42d2",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 264.583,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5294,
    "c": 0.20912,
    "h": 297.5
  },
  "luminance": 0.1291
}

Semantic roles & 50–950 ramp

primary
#7D42D2
secondary
#BDD799
accent
#E543A2
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7D42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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