#412771#412771

#412771 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 34.8% C 0.122 H 295.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#412771
RGBrgb(65, 39, 113)
HSLhsl(261, 49%, 30%)
HSVhsv(261, 65%, 44%)
CMYKcmyk(42.5%, 65.5%, 0%, 55.7%)
CIE-LABlab(22.89, 30.20, -38.58)
CIE-LCHlch(22.89, 48.99, 308.06°)
OKLaboklab(34.82% 0.0526 -0.1099)
OKLCHoklch(34.82% 0.122 295.6)
XYZxyz(5.8853, 3.7670, 16.0366)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412771 #577127
analogous
#273271 #412771 #662771
triadic
#412771 #714127 #277141
tetradic
#412771 #712732 #577127 #277166
square
#412771 #712732 #577127 #277166
split-complementary
#412771 #716627 #327127
monochromatic
#0D0817 #271744 #412771 #5B379E #7850C3

Accessibility & contrast

On white

11.98
#412771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#412771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412771
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412771#FFFFFF#000000##FFFFFF
##4127711.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#353848
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #412771;
/* rgb */ color: rgb(65, 39, 113);
/* oklch */ color: oklch(34.8% 0.122 295.6);
Tailwind
colors: {
  custom: {
    50: '#7a629a',
    500: '#412771',
    950: '#000000',
  },
}
SCSS
$custom: #412771;
$custom-light: #7a629a;
$custom-dark: #000000;
JSON
{
  "hex": "#412771",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 261.081,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34818,
    "c": 0.12186,
    "h": 295.6
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#412771
secondary
#86A350
accent
#D850A8
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #412771

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

Preview Lab → · Contrast checker → · Palette generator →

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