#41157E#41157E

#41157E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.160 H 295.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#41157E
RGBrgb(65, 21, 126)
HSLhsl(265, 71%, 29%)
HSVhsv(265, 83%, 49%)
CMYKcmyk(48.4%, 83.3%, 0%, 50.6%)
CIE-LABlab(20.70, 43.23, -50.45)
CIE-LCHlch(20.70, 66.44, 310.59°)
OKLaboklab(33.62% 0.0678 -0.1447)
OKLCHoklch(33.62% 0.16 295.1)
XYZxyz(6.2130, 3.1663, 20.0184)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41157E #527E15
analogous
#151D7E #41157E #76157E
triadic
#41157E #7E4115 #157E41
tetradic
#41157E #7E151D #527E15 #157E76
square
#41157E #7E151D #527E15 #157E76
split-complementary
#41157E #7E7615 #1D7E15
monochromatic
#0E041A #260C4A #41157E #5C1EB2 #7931DD

Accessibility & contrast

On white

12.86
#41157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#41157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41157E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41157E#FFFFFF#000000##FFFFFF
##41157E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#2F334A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #41157e;
/* rgb */ color: rgb(65, 21, 126);
/* oklch */ color: oklch(33.6% 0.160 295.1);
Tailwind
colors: {
  custom: {
    50: '#7d59a4',
    500: '#41157e',
    950: '#000000',
  },
}
SCSS
$custom: #41157e;
$custom-light: #7d59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#41157e",
  "rgb": {
    "r": 65,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 265.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33621,
    "c": 0.15982,
    "h": 295.1
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#41157E
secondary
#81B33C
accent
#EE3AA3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #41157E

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

Preview Lab → · Contrast checker → · Palette generator →

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