#7D42AE#7D42AE

#7D42AE is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.3% C 0.169 H 306.4°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7D42AE
RGBrgb(125, 66, 174)
HSLhsl(273, 45%, 47%)
HSVhsv(273, 62%, 68%)
CMYKcmyk(28.2%, 62.1%, 0%, 31.8%)
CIE-LABlab(40.10, 45.55, -48.01)
CIE-LCHlch(40.10, 66.18, 313.49°)
OKLaboklab(50.32% 0.1002 -0.1357)
OKLCHoklch(50.32% 0.169 306.4)
XYZxyz(18.0440, 11.3126, 41.2692)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42AE #73AE42
analogous
#4742AE #7D42AE #AE42A9
triadic
#7D42AE #AE7D42 #42AE7D
tetradic
#7D42AE #AE4742 #73AE42 #42A9AE
square
#7D42AE #AE4742 #73AE42 #42A9AE
split-complementary
#7D42AE #A9AE42 #42AE47
monochromatic
#3D2055 #5D3182 #7D42AE #9B68C6 #B894D6

Accessibility & contrast

On white

6.44
#7D42AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7D42AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42AE
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42AE#FFFFFF#000000##FFFFFF
##7D42AE1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065DB1
Deuteranopia (green-blind)
#2D5FAC
Tritanopia (blue-blind)
#755872
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7d42ae;
/* rgb */ color: rgb(125, 66, 174);
/* oklch */ color: oklch(50.3% 0.169 306.4);
Tailwind
colors: {
  custom: {
    50: '#a67ac7',
    500: '#7d42ae',
    950: '#000000',
  },
}
SCSS
$custom: #7d42ae;
$custom-light: #a67ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42ae",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 272.778,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50324,
    "c": 0.16867,
    "h": 306.4
  },
  "luminance": 0.11312
}

Semantic roles & 50–950 ramp

primary
#7D42AE
secondary
#A3C28A
accent
#D5538E
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7D42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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