#412774#412774

#412774 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.126 H 294.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#412774
RGBrgb(65, 39, 116)
HSLhsl(260, 50%, 30%)
HSVhsv(260, 66%, 45%)
CMYKcmyk(44%, 66.4%, 0%, 54.5%)
CIE-LABlab(23.12, 31.09, -40.12)
CIE-LCHlch(23.12, 50.76, 307.77°)
OKLaboklab(35.06% 0.0523 -0.1145)
OKLCHoklch(35.06% 0.126 294.6)
XYZxyz(6.0570, 3.8357, 16.9408)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412774 #5A7427
analogous
#273374 #412774 #672774
triadic
#412774 #744127 #277441
tetradic
#412774 #742733 #5A7427 #277467
square
#412774 #742733 #5A7427 #277467
split-complementary
#412774 #746727 #337427
monochromatic
#0E0818 #271846 #412774 #5B36A2 #7851C4

Accessibility & contrast

On white

11.88
#412774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#412774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412774
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412774#FFFFFF#000000##FFFFFF
##4127741.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#333949
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #412774;
/* rgb */ color: rgb(65, 39, 116);
/* oklch */ color: oklch(35.1% 0.126 294.6);
Tailwind
colors: {
  custom: {
    50: '#7a639d',
    500: '#412774',
    950: '#000000',
  },
}
SCSS
$custom: #412774;
$custom-light: #7a639d;
$custom-dark: #000000;
JSON
{
  "hex": "#412774",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 116
  },
  "hsl": {
    "h": 260.26,
    "s": 49.677,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35063,
    "c": 0.12587,
    "h": 294.6
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#412774
secondary
#89A650
accent
#D94FAA
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #412774

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

Preview Lab → · Contrast checker → · Palette generator →

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