#412282#412282

#412282 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.150 H 291.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#412282
RGBrgb(65, 34, 130)
HSLhsl(259, 59%, 32%)
HSVhsv(259, 74%, 51%)
CMYKcmyk(50%, 73.8%, 0%, 49%)
CIE-LABlab(23.27, 38.11, -48.77)
CIE-LCHlch(23.27, 61.89, 308.00°)
OKLaboklab(35.54% 0.0555 -0.1399)
OKLCHoklch(35.54% 0.15 291.6)
XYZxyz(6.7801, 3.8793, 21.5063)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412282 #638222
analogous
#223382 #412282 #712282
triadic
#412282 #824122 #228241
tetradic
#412282 #822233 #638222 #228271
square
#412282 #822233 #638222 #228271
split-complementary
#412282 #827122 #338222
monochromatic
#100921 #291551 #412282 #592FB3 #784ED1

Accessibility & contrast

On white

11.82
#412282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#412282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412282
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412282#FFFFFF#000000##FFFFFF
##4122821.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #412282;
/* rgb */ color: rgb(65, 34, 130);
/* oklch */ color: oklch(35.5% 0.150 291.6);
Tailwind
colors: {
  custom: {
    50: '#7c60a7',
    500: '#412282',
    950: '#000000',
  },
}
SCSS
$custom: #412282;
$custom-light: #7c60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#412282",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 259.375,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3554,
    "c": 0.15049,
    "h": 291.6
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#412282
secondary
#92B44C
accent
#E246AF
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #412282

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

Preview Lab → · Contrast checker → · Palette generator →

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