#7D41C2#7D41C2

#7D41C2 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.193 H 301.2°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7D41C2
RGBrgb(125, 65, 194)
HSLhsl(268, 51%, 51%)
HSVhsv(268, 66%, 76%)
CMYKcmyk(35.6%, 66.5%, 0%, 23.9%)
CIE-LABlab(41.27, 50.94, -57.88)
CIE-LCHlch(41.27, 77.10, 311.35°)
OKLaboklab(51.6% 0.0998 -0.1647)
OKLCHoklch(51.6% 0.193 301.2)
XYZxyz(20.0830, 12.0355, 52.2935)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D41C2 #86C241
analogous
#4145C2 #7D41C2 #BD41C2
triadic
#7D41C2 #C27D41 #41C27D
tetradic
#7D41C2 #C24145 #86C241 #41C2BD
square
#7D41C2 #C24145 #86C241 #41C2BD
split-complementary
#7D41C2 #C2BD41 #45C241
monochromatic
#422167 #5F3096 #7D41C2 #9D6FD1 #BC9EE0

Accessibility & contrast

On white

6.16
#7D41C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7D41C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D41C2
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D41C2#FFFFFF#000000##FFFFFF
##7D41C21.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#6E5E7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d41c2;
/* rgb */ color: rgb(125, 65, 194);
/* oklch */ color: oklch(51.6% 0.193 301.2);
Tailwind
colors: {
  custom: {
    50: '#a87ad5',
    500: '#7d41c2',
    950: '#000000',
  },
}
SCSS
$custom: #7d41c2;
$custom-light: #a87ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d41c2",
  "rgb": {
    "r": 125,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 267.907,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51601,
    "c": 0.19257,
    "h": 301.2
  },
  "luminance": 0.12036
}

Semantic roles & 50–950 ramp

primary
#7D41C2
secondary
#B1CC93
accent
#DB4D99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D41C2

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

Preview Lab → · Contrast checker → · Palette generator →

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