#412872#412872

#412872 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.1% C 0.122 H 294.9°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#412872
RGBrgb(65, 40, 114)
HSLhsl(260, 48%, 30%)
HSVhsv(260, 65%, 45%)
CMYKcmyk(43%, 64.9%, 0%, 55.3%)
CIE-LABlab(23.19, 29.89, -38.73)
CIE-LCHlch(23.19, 48.92, 307.66°)
OKLaboklab(35.06% 0.0513 -0.1104)
OKLCHoklch(35.06% 0.122 294.9)
XYZxyz(5.9752, 3.8562, 16.3458)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412872 #597228
analogous
#283472 #412872 #662872
triadic
#412872 #724128 #287241
tetradic
#412872 #722834 #597228 #287266
square
#412872 #722834 #597228 #287266
split-complementary
#412872 #726628 #347228
monochromatic
#0D0817 #271845 #412872 #5B389F #7852C2

Accessibility & contrast

On white

11.86
#412872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412872
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412872#FFFFFF#000000##FFFFFF
##4128721.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#343949
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #412872;
/* rgb */ color: rgb(65, 40, 114);
/* oklch */ color: oklch(35.1% 0.122 294.9);
Tailwind
colors: {
  custom: {
    50: '#7a639b',
    500: '#412872',
    950: '#000000',
  },
}
SCSS
$custom: #412872;
$custom-light: #7a639b;
$custom-dark: #000000;
JSON
{
  "hex": "#412872",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 260.27,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35064,
    "c": 0.1217,
    "h": 294.9
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#412872
secondary
#88A452
accent
#D850AA
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #412872

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

Preview Lab → · Contrast checker → · Palette generator →

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