#41178F#41178F

#41178F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.177 H 289.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#41178F
RGBrgb(65, 23, 143)
HSLhsl(261, 72%, 33%)
HSVhsv(261, 84%, 56%)
CMYKcmyk(54.5%, 83.9%, 0%, 43.9%)
CIE-LABlab(22.72, 47.01, -57.81)
CIE-LCHlch(22.72, 74.51, 309.12°)
OKLaboklab(35.54% 0.0603 -0.1662)
OKLCHoklch(35.54% 0.177 289.9)
XYZxyz(7.4429, 3.7194, 26.3070)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41178F #658F17
analogous
#17298F #41178F #7D178F
triadic
#41178F #8F4117 #178F41
tetradic
#41178F #8F1729 #658F17 #178F7D
square
#41178F #8F1729 #658F17 #178F7D
split-complementary
#41178F #8F7D17 #298F17
monochromatic
#110626 #290F5A #41178F #591FC4 #7840E0

Accessibility & contrast

On white

12.04
#41178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #41178F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41178F#FFFFFF#000000##FFFFFF
##41178F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#233B54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #41178f;
/* rgb */ color: rgb(65, 23, 143);
/* oklch */ color: oklch(35.5% 0.177 289.9);
Tailwind
colors: {
  custom: {
    50: '#7f5bb1',
    500: '#41178f',
    950: '#000000',
  },
}
SCSS
$custom: #41178f;
$custom-light: #7f5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#41178f",
  "rgb": {
    "r": 65,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 261,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35543,
    "c": 0.17685,
    "h": 289.9
  },
  "luminance": 0.0372
}

Semantic roles & 50–950 ramp

primary
#41178F
secondary
#94C141
accent
#EF39AF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #41178F

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

Preview Lab → · Contrast checker → · Palette generator →

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