#412A7C#412A7C

#412A7C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.132 H 291.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#412A7C
RGBrgb(65, 42, 124)
HSLhsl(257, 49%, 33%)
HSVhsv(257, 66%, 49%)
CMYKcmyk(47.6%, 66.1%, 0%, 51.4%)
CIE-LABlab(24.43, 31.70, -43.08)
CIE-LCHlch(24.43, 53.49, 306.34°)
OKLaboklab(36.22% 0.048 -0.1232)
OKLCHoklch(36.22% 0.132 291.3)
XYZxyz(6.6450, 4.2348, 19.5321)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412A7C #657C2A
analogous
#2A3C7C #412A7C #6A2A7C
triadic
#412A7C #7C412A #2A7C41
tetradic
#412A7C #7C2A3C #657C2A #2A7C6A
square
#412A7C #7C2A3C #657C2A #2A7C6A
split-complementary
#412A7C #7C6A2A #3C7C2A
monochromatic
#110B21 #291B4E #412A7C #5939AA #7859C7

Accessibility & contrast

On white

11.37
#412A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#412A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412A7C
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412A7C#FFFFFF#000000##FFFFFF
##412A7C1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#2F3D4F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #412a7c;
/* rgb */ color: rgb(65, 42, 124);
/* oklch */ color: oklch(36.2% 0.132 291.3);
Tailwind
colors: {
  custom: {
    50: '#7b65a3',
    500: '#412a7c',
    950: '#000000',
  },
}
SCSS
$custom: #412a7c;
$custom-light: #7b65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#412a7c",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 256.829,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36215,
    "c": 0.13221,
    "h": 291.3
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#412A7C
secondary
#94AD55
accent
#D94FB2
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #412A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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