#412E7D#412E7D

#412E7D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.0% C 0.128 H 289.7°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#412E7D
RGBrgb(65, 46, 125)
HSLhsl(254, 46%, 34%)
HSVhsv(254, 63%, 49%)
CMYKcmyk(48%, 63.2%, 0%, 51%)
CIE-LABlab(25.44, 29.54, -42.09)
CIE-LCHlch(25.44, 51.42, 305.07°)
OKLaboklab(36.97% 0.0432 -0.1203)
OKLCHoklch(36.97% 0.128 289.7)
XYZxyz(6.8576, 4.5582, 19.9166)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412E7D #6A7D2E
analogous
#2E427D #412E7D #682E7D
triadic
#412E7D #7D412E #2E7D41
tetradic
#412E7D #7D2E42 #6A7D2E #2E7D68
square
#412E7D #7D2E42 #6A7D2E #2E7D68
split-complementary
#412E7D #7D682E #427D2E
monochromatic
#120D24 #2A1E50 #412E7D #583EAA #7961C5

Accessibility & contrast

On white

10.99
#412E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#412E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412E7D
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412E7D#FFFFFF#000000##FFFFFF
##412E7D1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#2E4051
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412e7d;
/* rgb */ color: rgb(65, 46, 125);
/* oklch */ color: oklch(37.0% 0.128 289.7);
Tailwind
colors: {
  custom: {
    50: '#7b67a3',
    500: '#412e7d',
    950: '#000000',
  },
}
SCSS
$custom: #412e7d;
$custom-light: #7b67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#412e7d",
  "rgb": {
    "r": 65,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 254.43,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36971,
    "c": 0.12779,
    "h": 289.7
  },
  "luminance": 0.04558
}

Semantic roles & 50–950 ramp

primary
#412E7D
secondary
#98AB5B
accent
#D652B6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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