#412891#412891

#412891 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.162 H 286.8°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#412891
RGBrgb(65, 40, 145)
HSLhsl(254, 57%, 36%)
HSVhsv(254, 72%, 57%)
CMYKcmyk(55.2%, 72.4%, 0%, 43.1%)
CIE-LABlab(25.82, 39.31, -53.96)
CIE-LCHlch(25.82, 66.76, 306.07°)
OKLaboklab(37.77% 0.0467 -0.1551)
OKLCHoklch(37.77% 0.162 286.8)
XYZxyz(8.0481, 4.6853, 27.2629)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412891 #789128
analogous
#284491 #412891 #762891
triadic
#412891 #914128 #289141
tetradic
#412891 #912844 #789128 #289176
square
#412891 #912844 #789128 #289176
split-complementary
#412891 #917628 #449128
monochromatic
#160E31 #2B1B61 #412891 #5735C1 #7C60D3

Accessibility & contrast

On white

10.84
#412891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412891
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412891#FFFFFF#000000##FFFFFF
##4128911.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#204459
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412891;
/* rgb */ color: rgb(65, 40, 145);
/* oklch */ color: oklch(37.8% 0.162 286.8);
Tailwind
colors: {
  custom: {
    50: '#7e64b2',
    500: '#412891',
    950: '#000000',
  },
}
SCSS
$custom: #412891;
$custom-light: #7e64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#412891",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 254.286,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37773,
    "c": 0.162,
    "h": 286.8
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#412891
secondary
#A3B95C
accent
#E048BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412891

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

Preview Lab → · Contrast checker → · Palette generator →

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