#41178E#41178E

#41178E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.176 H 290.2°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#41178E
RGBrgb(65, 23, 142)
HSLhsl(261, 72%, 32%)
HSVhsv(261, 84%, 56%)
CMYKcmyk(54.2%, 83.8%, 0%, 44.3%)
CIE-LABlab(22.62, 46.74, -57.36)
CIE-LCHlch(22.62, 73.99, 309.18°)
OKLaboklab(35.44% 0.0607 -0.1649)
OKLCHoklch(35.44% 0.176 290.2)
XYZxyz(7.3674, 3.6893, 25.9098)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41178E #648E17
analogous
#17298E #41178E #7C178E
triadic
#41178E #8E4117 #178E41
tetradic
#41178E #8E1729 #648E17 #178E7C
square
#41178E #8E1729 #648E17 #178E7C
split-complementary
#41178E #8E7C17 #298E17
monochromatic
#110625 #290E59 #41178E #5920C3 #783FE0

Accessibility & contrast

On white

12.08
#41178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#41178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41178E
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41178E#FFFFFF#000000##FFFFFF
##41178E1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#243B54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #41178e;
/* rgb */ color: rgb(65, 23, 142);
/* oklch */ color: oklch(35.4% 0.176 290.2);
Tailwind
colors: {
  custom: {
    50: '#7f5bb0',
    500: '#41178e',
    950: '#000000',
  },
}
SCSS
$custom: #41178e;
$custom-light: #7f5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#41178e",
  "rgb": {
    "r": 65,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 261.176,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3544,
    "c": 0.17575,
    "h": 290.2
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#41178E
secondary
#93C040
accent
#EF39AF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #41178E

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

Preview Lab → · Contrast checker → · Palette generator →

#41178E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva