#412371#412371

#412371 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.128 H 296.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#412371
RGBrgb(65, 35, 113)
HSLhsl(263, 53%, 29%)
HSVhsv(263, 69%, 44%)
CMYKcmyk(42.5%, 69%, 0%, 55.7%)
CIE-LABlab(22.01, 32.57, -40.00)
CIE-LCHlch(22.01, 51.58, 309.16°)
OKLaboklab(34.18% 0.0575 -0.1141)
OKLCHoklch(34.18% 0.128 296.7)
XYZxyz(5.7609, 3.5180, 15.9951)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412371 #537123
analogous
#232C71 #412371 #682371
triadic
#412371 #714123 #237141
tetradic
#412371 #71232C #537123 #237168
square
#412371 #71232C #537123 #237168
split-complementary
#412371 #716823 #2C7123
monochromatic
#0D0717 #261542 #412371 #5C31A0 #7948C6

Accessibility & contrast

On white

12.33
#412371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#412371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412371
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412371#FFFFFF#000000##FFFFFF
##4123711.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#353546
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #412371;
/* rgb */ color: rgb(65, 35, 113);
/* oklch */ color: oklch(34.2% 0.128 296.7);
Tailwind
colors: {
  custom: {
    50: '#7a609a',
    500: '#412371',
    950: '#000000',
  },
}
SCSS
$custom: #412371;
$custom-light: #7a609a;
$custom-dark: #000000;
JSON
{
  "hex": "#412371",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 263.077,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34184,
    "c": 0.12776,
    "h": 296.7
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#412371
secondary
#82A44C
accent
#DC4CA5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #412371

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

Preview Lab → · Contrast checker → · Palette generator →

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