#412582#412582

#412582 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.147 H 291.0°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#412582
RGBrgb(65, 37, 130)
HSLhsl(258, 56%, 33%)
HSVhsv(258, 72%, 51%)
CMYKcmyk(50%, 71.5%, 0%, 49%)
CIE-LABlab(23.86, 36.45, -47.80)
CIE-LCHlch(23.86, 60.11, 307.33°)
OKLaboklab(35.96% 0.0525 -0.137)
OKLCHoklch(35.96% 0.147 291)
XYZxyz(6.8697, 4.0584, 21.5362)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412582 #668225
analogous
#253782 #412582 #702582
triadic
#412582 #824125 #258241
tetradic
#412582 #822537 #668225 #258270
square
#412582 #822537 #668225 #258270
split-complementary
#412582 #827025 #378225
monochromatic
#110A23 #291752 #412582 #5933B2 #7853CE

Accessibility & contrast

On white

11.59
#412582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#412582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412582
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412582#FFFFFF#000000##FFFFFF
##4125821.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#2C3D50
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #412582;
/* rgb */ color: rgb(65, 37, 130);
/* oklch */ color: oklch(36.0% 0.147 291.0);
Tailwind
colors: {
  custom: {
    50: '#7c62a7',
    500: '#412582',
    950: '#000000',
  },
}
SCSS
$custom: #412582;
$custom-light: #7c62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#412582",
  "rgb": {
    "r": 65,
    "g": 37,
    "b": 130
  },
  "hsl": {
    "h": 258.065,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35963,
    "c": 0.14677,
    "h": 291
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#412582
secondary
#95B250
accent
#DF49B2
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #412582

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

Preview Lab → · Contrast checker → · Palette generator →

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