#412182#412182

#412182 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.152 H 291.8°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#412182
RGBrgb(65, 33, 130)
HSLhsl(260, 60%, 32%)
HSVhsv(260, 75%, 51%)
CMYKcmyk(50%, 74.6%, 0%, 49%)
CIE-LABlab(23.08, 38.64, -49.08)
CIE-LCHlch(23.08, 62.47, 308.21°)
OKLaboklab(35.4% 0.0564 -0.1408)
OKLCHoklch(35.4% 0.152 291.8)
XYZxyz(6.7520, 3.8230, 21.4969)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412182 #628221
analogous
#213282 #412182 #722182
triadic
#412182 #824121 #218241
tetradic
#412182 #822132 #628221 #218272
square
#412182 #822132 #628221 #218272
split-complementary
#412182 #827221 #328221
monochromatic
#100820 #291551 #412182 #592DB3 #784CD2

Accessibility & contrast

On white

11.90
#412182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#412182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412182
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412182#FFFFFF#000000##FFFFFF
##4121821.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#2C3A4F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #412182;
/* rgb */ color: rgb(65, 33, 130);
/* oklch */ color: oklch(35.4% 0.152 291.8);
Tailwind
colors: {
  custom: {
    50: '#7d5fa7',
    500: '#412182',
    950: '#000000',
  },
}
SCSS
$custom: #412182;
$custom-light: #7d5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#412182",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 259.794,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35404,
    "c": 0.15169,
    "h": 291.8
  },
  "luminance": 0.03823
}

Semantic roles & 50–950 ramp

primary
#412182
secondary
#91B44A
accent
#E345AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #412182

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

Preview Lab → · Contrast checker → · Palette generator →

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