#412C78#412C78

#412C78 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.2% C 0.124 H 291.8°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#412C78
RGBrgb(65, 44, 120)
HSLhsl(257, 46%, 32%)
HSVhsv(257, 63%, 47%)
CMYKcmyk(45.8%, 63.3%, 0%, 52.9%)
CIE-LABlab(24.58, 29.24, -40.31)
CIE-LCHlch(24.58, 49.80, 305.96°)
OKLaboklab(36.22% 0.0459 -0.115)
OKLCHoklch(36.22% 0.124 291.8)
XYZxyz(6.4699, 4.2810, 18.2511)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412C78 #63782C
analogous
#2C3D78 #412C78 #672C78
triadic
#412C78 #78412C #2C7841
tetradic
#412C78 #782C3D #63782C #2C7867
square
#412C78 #782C3D #63782C #2C7867
split-complementary
#412C78 #78672C #3D782C
monochromatic
#100B1E #291C4B #412C78 #593CA5 #785BC3

Accessibility & contrast

On white

11.31
#412C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#412C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412C78
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412C78#FFFFFF#000000##FFFFFF
##412C781.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#313D4D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #412c78;
/* rgb */ color: rgb(65, 44, 120);
/* oklch */ color: oklch(36.2% 0.124 291.8);
Tailwind
colors: {
  custom: {
    50: '#7a66a0',
    500: '#412c78',
    950: '#000000',
  },
}
SCSS
$custom: #412c78;
$custom-light: #7a66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#412c78",
  "rgb": {
    "r": 65,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 256.579,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36222,
    "c": 0.12386,
    "h": 291.8
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#412C78
secondary
#92A957
accent
#D652B1
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A060F
muted
#7C7A7E

Preview Lab

Preview with #412C78

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

Preview Lab → · Contrast checker → · Palette generator →

#412C78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva