#412782#412782

#412782 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.144 H 290.5°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#412782
RGBrgb(65, 39, 130)
HSLhsl(257, 54%, 33%)
HSVhsv(257, 70%, 51%)
CMYKcmyk(50%, 70%, 0%, 49%)
CIE-LABlab(24.28, 35.31, -47.12)
CIE-LCHlch(24.28, 58.88, 306.84°)
OKLaboklab(36.26% 0.0505 -0.1351)
OKLCHoklch(36.26% 0.144 290.5)
XYZxyz(6.9336, 4.1863, 21.5575)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412782 #688227
analogous
#273A82 #412782 #6E2782
triadic
#412782 #824127 #278241
tetradic
#412782 #82273A #688227 #27826E
square
#412782 #82273A #688227 #27826E
split-complementary
#412782 #826E27 #3A8227
monochromatic
#120B24 #291953 #412782 #5935B1 #7857CD

Accessibility & contrast

On white

11.43
#412782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#412782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412782
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412782#FFFFFF#000000##FFFFFF
##4127821.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#2C3E51
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #412782;
/* rgb */ color: rgb(65, 39, 130);
/* oklch */ color: oklch(36.3% 0.144 290.5);
Tailwind
colors: {
  custom: {
    50: '#7c63a7',
    500: '#412782',
    950: '#000000',
  },
}
SCSS
$custom: #412782;
$custom-light: #7c63a7;
$custom-dark: #000000;
JSON
{
  "hex": "#412782",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 257.143,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3626,
    "c": 0.14419,
    "h": 290.5
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#412782
secondary
#97B153
accent
#DD4BB3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #412782

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

Preview Lab → · Contrast checker → · Palette generator →

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