#412572#412572

#412572 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.6% C 0.126 H 295.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#412572
RGBrgb(65, 37, 114)
HSLhsl(262, 51%, 30%)
HSVhsv(262, 68%, 45%)
CMYKcmyk(43%, 67.5%, 0%, 55.3%)
CIE-LABlab(22.52, 31.69, -39.81)
CIE-LCHlch(22.52, 50.89, 308.52°)
OKLaboklab(34.58% 0.0549 -0.1136)
OKLCHoklch(34.58% 0.126 295.8)
XYZxyz(5.8780, 3.6617, 16.3134)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412572 #567225
analogous
#253072 #412572 #682572
triadic
#412572 #724125 #257241
tetradic
#412572 #722530 #567225 #257268
square
#412572 #722530 #567225 #257268
split-complementary
#412572 #726825 #307225
monochromatic
#0D0717 #271644 #412572 #5B34A0 #784CC5

Accessibility & contrast

On white

12.12
#412572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#412572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412572
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412572#FFFFFF#000000##FFFFFF
##4125721.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#343748
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #412572;
/* rgb */ color: rgb(65, 37, 114);
/* oklch */ color: oklch(34.6% 0.126 295.8);
Tailwind
colors: {
  custom: {
    50: '#7a619b',
    500: '#412572',
    950: '#000000',
  },
}
SCSS
$custom: #412572;
$custom-light: #7a619b;
$custom-dark: #000000;
JSON
{
  "hex": "#412572",
  "rgb": {
    "r": 65,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 261.818,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34578,
    "c": 0.12616,
    "h": 295.8
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#412572
secondary
#85A54E
accent
#DA4DA7
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #412572

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

Preview Lab → · Contrast checker → · Palette generator →

#412572 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva