#7D41B2#7D41B2

#7D41B2 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.5% C 0.175 H 305.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7D41B2
RGBrgb(125, 65, 178)
HSLhsl(272, 47%, 48%)
HSVhsv(272, 63%, 70%)
CMYKcmyk(29.8%, 63.5%, 0%, 30.2%)
CIE-LABlab(40.17, 47.03, -50.27)
CIE-LCHlch(40.17, 68.83, 313.09°)
OKLaboklab(50.46% 0.1012 -0.1423)
OKLCHoklch(50.46% 0.175 305.4)
XYZxyz(18.3819, 11.3550, 43.3342)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D41B2 #76B241
analogous
#4441B2 #7D41B2 #B241AF
triadic
#7D41B2 #B27D41 #41B27D
tetradic
#7D41B2 #B24441 #76B241 #41AFB2
square
#7D41B2 #B24441 #76B241 #41AFB2
split-complementary
#7D41B2 #AFB241 #41B244
monochromatic
#3E2058 #5E3185 #7D41B2 #9B68C8 #B995D8

Accessibility & contrast

On white

6.42
#7D41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7D41B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D41B2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D41B2#FFFFFF#000000##FFFFFF
##7D41B21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#265FAF
Tritanopia (blue-blind)
#745973
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7d41b2;
/* rgb */ color: rgb(125, 65, 178);
/* oklch */ color: oklch(50.5% 0.175 305.4);
Tailwind
colors: {
  custom: {
    50: '#a679ca',
    500: '#7d41b2',
    950: '#000000',
  },
}
SCSS
$custom: #7d41b2;
$custom-light: #a679ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d41b2",
  "rgb": {
    "r": 125,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 271.858,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50458,
    "c": 0.17463,
    "h": 305.4
  },
  "luminance": 0.11355
}

Semantic roles & 50–950 ramp

primary
#7D41B2
secondary
#A6C48B
accent
#D65290
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7D41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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