#412170#412170

#412170 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.129 H 297.6°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#412170
RGBrgb(65, 33, 112)
HSLhsl(264, 54%, 28%)
HSVhsv(264, 71%, 44%)
CMYKcmyk(42%, 70.5%, 0%, 56.1%)
CIE-LABlab(21.51, 33.43, -40.16)
CIE-LCHlch(21.51, 52.25, 309.77°)
OKLaboklab(33.8% 0.0599 -0.1146)
OKLCHoklch(33.8% 0.129 297.6)
XYZxyz(5.6477, 3.3813, 15.6812)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412170 #507021
analogous
#212870 #412170 #682170
triadic
#412170 #704121 #217041
tetradic
#412170 #702128 #507021 #217068
square
#412170 #702128 #507021 #217068
split-complementary
#412170 #706821 #287021
monochromatic
#0E0718 #261341 #412170 #5C2F9F #7944C8

Accessibility & contrast

On white

12.53
#412170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#412170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412170
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412170#FFFFFF#000000##FFFFFF
##4121701.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#353445
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #412170;
/* rgb */ color: rgb(65, 33, 112);
/* oklch */ color: oklch(33.8% 0.129 297.6);
Tailwind
colors: {
  custom: {
    50: '#7a5f9a',
    500: '#412170',
    950: '#000000',
  },
}
SCSS
$custom: #412170;
$custom-light: #7a5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#412170",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 264.304,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.338,
    "c": 0.12932,
    "h": 297.6
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#412170
secondary
#7FA449
accent
#DE4AA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #412170

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

Preview Lab → · Contrast checker → · Palette generator →

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