#412871#412871

#412871 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.0% C 0.120 H 295.2°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#412871
RGBrgb(65, 40, 113)
HSLhsl(261, 48%, 30%)
HSVhsv(261, 65%, 44%)
CMYKcmyk(42.5%, 64.6%, 0%, 55.7%)
CIE-LABlab(23.11, 29.59, -38.21)
CIE-LCHlch(23.11, 48.33, 307.76°)
OKLaboklab(34.98% 0.0513 -0.1089)
OKLCHoklch(34.98% 0.12 295.2)
XYZxyz(5.9186, 3.8335, 16.0477)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412871 #587128
analogous
#283471 #412871 #652871
triadic
#412871 #714128 #287141
tetradic
#412871 #712834 #587128 #287165
square
#412871 #712834 #587128 #287165
split-complementary
#412871 #716528 #347128
monochromatic
#0D0817 #271844 #412871 #5B389E #7852C2

Accessibility & contrast

On white

11.89
#412871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#412871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412871
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412871#FFFFFF#000000##FFFFFF
##4128711.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #412871;
/* rgb */ color: rgb(65, 40, 113);
/* oklch */ color: oklch(35.0% 0.120 295.2);
Tailwind
colors: {
  custom: {
    50: '#7a639a',
    500: '#412871',
    950: '#000000',
  },
}
SCSS
$custom: #412871;
$custom-light: #7a639a;
$custom-dark: #000000;
JSON
{
  "hex": "#412871",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 260.548,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.34983,
    "c": 0.12035,
    "h": 295.2
  },
  "luminance": 0.03834
}

Semantic roles & 50–950 ramp

primary
#412871
secondary
#87A352
accent
#D750A9
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #412871

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

Preview Lab → · Contrast checker → · Palette generator →

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