#412178#412178

#412178 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.139 H 294.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#412178
RGBrgb(65, 33, 120)
HSLhsl(262, 57%, 30%)
HSVhsv(262, 73%, 47%)
CMYKcmyk(45.8%, 72.5%, 0%, 52.9%)
CIE-LABlab(22.19, 35.73, -44.20)
CIE-LCHlch(22.19, 56.83, 308.96°)
OKLaboklab(34.49% 0.0586 -0.1264)
OKLCHoklch(34.49% 0.139 294.9)
XYZxyz(6.1131, 3.5674, 18.1322)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412178 #587821
analogous
#212C78 #412178 #6D2178
triadic
#412178 #784121 #217841
tetradic
#412178 #78212C #587821 #21786D
square
#412178 #78212C #587821 #21786D
split-complementary
#412178 #786D21 #2C7821
monochromatic
#0D0718 #271448 #412178 #5B2EA8 #7847CC

Accessibility & contrast

On white

12.25
#412178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#412178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412178
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412178#FFFFFF#000000##FFFFFF
##4121781.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#32374A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #412178;
/* rgb */ color: rgb(65, 33, 120);
/* oklch */ color: oklch(34.5% 0.139 294.9);
Tailwind
colors: {
  custom: {
    50: '#7b5fa0',
    500: '#412178',
    950: '#000000',
  },
}
SCSS
$custom: #412178;
$custom-light: #7b5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#412178",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 262.069,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.34495,
    "c": 0.13936,
    "h": 294.9
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#412178
secondary
#87AB4A
accent
#E048A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #412178

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

Preview Lab → · Contrast checker → · Palette generator →

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