#412C7B#412C7B

#412C7B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.5% C 0.128 H 290.9°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#412C7B
RGBrgb(65, 44, 123)
HSLhsl(256, 47%, 33%)
HSVhsv(256, 64%, 48%)
CMYKcmyk(47.2%, 64.2%, 0%, 51.8%)
CIE-LABlab(24.81, 30.17, -41.84)
CIE-LCHlch(24.81, 51.58, 305.79°)
OKLaboklab(36.46% 0.0457 -0.1195)
OKLCHoklch(36.46% 0.128 290.9)
XYZxyz(6.6548, 4.3550, 19.2250)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412C7B #667B2C
analogous
#2C3F7B #412C7B #682C7B
triadic
#412C7B #7B412C #2C7B41
tetradic
#412C7B #7B2C3F #667B2C #2C7B68
square
#412C7B #7B2C3F #667B2C #2C7B68
split-complementary
#412C7B #7B682C #3F7B2C
monochromatic
#110C21 #291C4E #412C7B #593CA8 #785DC5

Accessibility & contrast

On white

11.22
#412C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#412C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412C7B
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412C7B#FFFFFF#000000##FFFFFF
##412C7B1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#303E4F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #412c7b;
/* rgb */ color: rgb(65, 44, 123);
/* oklch */ color: oklch(36.5% 0.128 290.9);
Tailwind
colors: {
  custom: {
    50: '#7b66a2',
    500: '#412c7b',
    950: '#000000',
  },
}
SCSS
$custom: #412c7b;
$custom-light: #7b66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#412c7b",
  "rgb": {
    "r": 65,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 255.949,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36465,
    "c": 0.12797,
    "h": 290.9
  },
  "luminance": 0.04355
}

Semantic roles & 50–950 ramp

primary
#412C7B
secondary
#95AB58
accent
#D751B3
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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