#7D42CE#7D42CE

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

Color values

HEX#7D42CE
RGBrgb(125, 66, 206)
HSLhsl(265, 59%, 53%)
HSVhsv(265, 68%, 81%)
CMYKcmyk(39.3%, 68%, 0%, 19.2%)
CIE-LABlab(42.33, 53.45, -63.13)
CIE-LCHlch(42.33, 82.72, 310.25°)
OKLaboklab(52.63% 0.0972 -0.1801)
OKLCHoklch(52.63% 0.205 298.4)
XYZxyz(21.5434, 12.7123, 59.6993)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42CE #93CE42
analogous
#424DCE #7D42CE #C342CE
triadic
#7D42CE #CE7D42 #42CE7D
tetradic
#7D42CE #CE424D #93CE42 #42CEC3
square
#7D42CE #CE424D #93CE42 #42CEC3
split-complementary
#7D42CE #CEC342 #4DCE42
monochromatic
#441F77 #602BA7 #7D42CE #9E73DB #C0A3E7

Accessibility & contrast

On white

5.93
#7D42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7D42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42CE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42CE#FFFFFF#000000##FFFFFF
##7D42CE1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#6A6383
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d42ce;
/* rgb */ color: rgb(125, 66, 206);
/* oklch */ color: oklch(52.6% 0.205 298.4);
Tailwind
colors: {
  custom: {
    50: '#a97ade',
    500: '#7d42ce',
    950: '#000000',
  },
}
SCSS
$custom: #7d42ce;
$custom-light: #a97ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42ce",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 265.286,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52632,
    "c": 0.20468,
    "h": 298.4
  },
  "luminance": 0.12713
}

Semantic roles & 50–950 ramp

primary
#7D42CE
secondary
#BBD498
accent
#E246A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7D42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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