#412E7B#412E7B

#412E7B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 36.8% C 0.125 H 290.3°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#412E7B
RGBrgb(65, 46, 123)
HSLhsl(255, 46%, 33%)
HSVhsv(255, 63%, 48%)
CMYKcmyk(47.2%, 62.6%, 0%, 51.8%)
CIE-LABlab(25.28, 28.92, -41.07)
CIE-LCHlch(25.28, 50.23, 305.15°)
OKLaboklab(36.81% 0.0433 -0.1173)
OKLCHoklch(36.81% 0.125 290.3)
XYZxyz(6.7311, 4.5076, 19.2505)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412E7B #687B2E
analogous
#2E417B #412E7B #672E7B
triadic
#412E7B #7B412E #2E7B41
tetradic
#412E7B #7B2E41 #687B2E #2E7B67
square
#412E7B #7B2E41 #687B2E #2E7B67
split-complementary
#412E7B #7B672E #417B2E
monochromatic
#120D22 #291D4E #412E7B #593FA8 #7860C3

Accessibility & contrast

On white

11.04
#412E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#412E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412E7B
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412E7B#FFFFFF#000000##FFFFFF
##412E7B1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#2F4050
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412e7b;
/* rgb */ color: rgb(65, 46, 123);
/* oklch */ color: oklch(36.8% 0.125 290.3);
Tailwind
colors: {
  custom: {
    50: '#7a67a2',
    500: '#412e7b',
    950: '#000000',
  },
}
SCSS
$custom: #412e7b;
$custom-light: #7a67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#412e7b",
  "rgb": {
    "r": 65,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 254.805,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36809,
    "c": 0.12502,
    "h": 290.3
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#412E7B
secondary
#97AA5B
accent
#D553B5
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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