#413178#413178

#413178 is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.1% C 0.116 H 289.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#413178
RGBrgb(65, 49, 120)
HSLhsl(254, 42%, 33%)
HSVhsv(254, 59%, 47%)
CMYKcmyk(45.8%, 59.2%, 0%, 52.9%)
CIE-LABlab(25.79, 26.07, -38.35)
CIE-LCHlch(25.79, 46.38, 304.21°)
OKLaboklab(37.11% 0.0396 -0.1093)
OKLCHoklch(37.11% 0.116 289.9)
XYZxyz(6.6675, 4.6763, 18.3170)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#413178 #687831
analogous
#314478 #413178 #643178
triadic
#413178 #784131 #317841
tetradic
#413178 #783144 #687831 #317864
square
#413178 #783144 #687831 #317864
split-complementary
#413178 #786431 #447831
monochromatic
#120E21 #291F4D #413178 #5943A3 #7864C0

Accessibility & contrast

On white

10.85
#413178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#413178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #413178
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##413178#FFFFFF#000000##FFFFFF
##4131781.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063E7A
Deuteranopia (green-blind)
#0A3B76
Tritanopia (blue-blind)
#31414F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #413178;
/* rgb */ color: rgb(65, 49, 120);
/* oklch */ color: oklch(37.1% 0.116 289.9);
Tailwind
colors: {
  custom: {
    50: '#7a699f',
    500: '#413178',
    950: '#000000',
  },
}
SCSS
$custom: #413178;
$custom-light: #7a699f;
$custom-dark: #000000;
JSON
{
  "hex": "#413178",
  "rgb": {
    "r": 65,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 253.521,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37112,
    "c": 0.11623,
    "h": 289.9
  },
  "luminance": 0.04677
}

Semantic roles & 50–950 ramp

primary
#413178
secondary
#97A75E
accent
#D256B6
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #413178

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

Preview Lab → · Contrast checker → · Palette generator →

#413178 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva