#7D42D8#7D42D8

#7D42D8 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.4% C 0.216 H 296.3°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7D42D8
RGBrgb(125, 66, 216)
HSLhsl(264, 66%, 55%)
HSVhsv(264, 69%, 85%)
CMYKcmyk(42.1%, 69.4%, 0%, 15.3%)
CIE-LABlab(43.08, 55.99, -67.65)
CIE-LCHlch(43.08, 87.81, 309.61°)
OKLaboklab(53.41% 0.0956 -0.1934)
OKLCHoklch(53.41% 0.216 296.3)
XYZxyz(22.7971, 13.2138, 66.3018)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42D8 #9DD842
analogous
#4252D8 #7D42D8 #C842D8
triadic
#7D42D8 #D87D42 #42D87D
tetradic
#7D42D8 #D84252 #9DD842 #42D8C8
square
#7D42D8 #D84252 #9DD842 #42D8C8
split-complementary
#7D42D8 #D8C842 #52D842
monochromatic
#451B84 #5F26B7 #7D42D8 #A075E2 #C3A7ED

Accessibility & contrast

On white

5.76
#7D42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7D42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42D8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42D8#FFFFFF#000000##FFFFFF
##7D42D81.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DC
Deuteranopia (green-blind)
#0064D5
Tritanopia (blue-blind)
#656788
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7d42d8;
/* rgb */ color: rgb(125, 66, 216);
/* oklch */ color: oklch(53.4% 0.216 296.3);
Tailwind
colors: {
  custom: {
    50: '#aa7be5',
    500: '#7d42d8',
    950: '#000000',
  },
}
SCSS
$custom: #7d42d8;
$custom-light: #aa7be5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42d8",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 263.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.53409,
    "c": 0.21575,
    "h": 296.3
  },
  "luminance": 0.13214
}

Semantic roles & 50–950 ramp

primary
#7D42D8
secondary
#C2DA9C
accent
#E93FA6
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7D42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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