#412072#412072

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

Color values

HEX#412072
RGBrgb(65, 32, 114)
HSLhsl(264, 56%, 29%)
HSVhsv(264, 72%, 45%)
CMYKcmyk(43%, 71.9%, 0%, 55.3%)
CIE-LABlab(21.47, 34.56, -41.51)
CIE-LCHlch(21.47, 54.01, 309.78°)
OKLaboklab(33.83% 0.0608 -0.1185)
OKLCHoklch(33.83% 0.133 297.1)
XYZxyz(5.7330, 3.3716, 16.2651)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412072 #517220
analogous
#202872 #412072 #6A2072
triadic
#412072 #724120 #207241
tetradic
#412072 #722028 #517220 #20726A
square
#412072 #722028 #517220 #20726A
split-complementary
#412072 #726A20 #287220
monochromatic
#0E0718 #261342 #412072 #5C2DA2 #7942CA

Accessibility & contrast

On white

12.54
#412072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#412072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412072
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412072#FFFFFF#000000##FFFFFF
##4120721.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#353446
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #412072;
/* rgb */ color: rgb(65, 32, 114);
/* oklch */ color: oklch(33.8% 0.133 297.1);
Tailwind
colors: {
  custom: {
    50: '#7a5e9b',
    500: '#412072',
    950: '#000000',
  },
}
SCSS
$custom: #412072;
$custom-light: #7a5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#412072",
  "rgb": {
    "r": 65,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 264.146,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33827,
    "c": 0.13321,
    "h": 297.1
  },
  "luminance": 0.03372
}

Semantic roles & 50–950 ramp

primary
#412072
secondary
#80A648
accent
#DF48A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #412072

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

Preview Lab → · Contrast checker → · Palette generator →

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