#412D7E#412D7E

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

Color values

HEX#412D7E
RGBrgb(65, 45, 126)
HSLhsl(255, 47%, 34%)
HSVhsv(255, 64%, 49%)
CMYKcmyk(48.4%, 64.3%, 0%, 50.6%)
CIE-LABlab(25.28, 30.48, -42.97)
CIE-LCHlch(25.28, 52.68, 305.35°)
OKLaboklab(36.88% 0.0443 -0.1229)
OKLCHoklch(36.88% 0.131 289.8)
XYZxyz(6.8832, 4.5067, 20.2418)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D7E #6A7E2D
analogous
#2D417E #412D7E #692D7E
triadic
#412D7E #7E412D #2D7E41
tetradic
#412D7E #7E2D41 #6A7E2D #2D7E69
square
#412D7E #7E2D41 #6A7E2D #2D7E69
split-complementary
#412D7E #7E692D #417E2D
monochromatic
#120D24 #2A1D51 #412D7E #583DAB #795FC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##412D7E#FFFFFF#000000##FFFFFF
##412D7E1.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)
#003D81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#2E4051
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412d7e;
/* rgb */ color: rgb(65, 45, 126);
/* oklch */ color: oklch(36.9% 0.131 289.8);
Tailwind
colors: {
  custom: {
    50: '#7b67a4',
    500: '#412d7e',
    950: '#000000',
  },
}
SCSS
$custom: #412d7e;
$custom-light: #7b67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#412d7e",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 254.815,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36881,
    "c": 0.13061,
    "h": 289.8
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#412D7E
secondary
#98AC5A
accent
#D751B6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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