#412C98#412C98

#412C98 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.166 H 284.6°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#412C98
RGBrgb(65, 44, 152)
HSLhsl(252, 55%, 38%)
HSVhsv(252, 71%, 60%)
CMYKcmyk(57.2%, 71.1%, 0%, 40.4%)
CIE-LABlab(27.27, 39.21, -55.88)
CIE-LCHlch(27.27, 68.26, 305.06°)
OKLaboklab(39.01% 0.0418 -0.1608)
OKLCHoklch(39.01% 0.166 284.6)
XYZxyz(8.7464, 5.1917, 30.2409)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412C98 #83982C
analogous
#2C4D98 #412C98 #772C98
triadic
#412C98 #98412C #2C9841
tetradic
#412C98 #982C4D #83982C #2C9877
square
#412C98 #982C4D #83982C #2C9877
split-complementary
#412C98 #98772C #4D982C
monochromatic
#181139 #2D1E69 #412C98 #563BC6 #7F6AD4

Accessibility & contrast

On white

10.30
#412C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#412C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412C98
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412C98#FFFFFF#000000##FFFFFF
##412C981.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#17485E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #412c98;
/* rgb */ color: rgb(65, 44, 152);
/* oklch */ color: oklch(39.0% 0.166 284.6);
Tailwind
colors: {
  custom: {
    50: '#7f67b7',
    500: '#412c98',
    950: '#000000',
  },
}
SCSS
$custom: #412c98;
$custom-light: #7f67b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412c98",
  "rgb": {
    "r": 65,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 251.667,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39008,
    "c": 0.16612,
    "h": 284.6
  },
  "luminance": 0.05192
}

Semantic roles & 50–950 ramp

primary
#412C98
secondary
#AABB65
accent
#DE49C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412C98

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

Preview Lab → · Contrast checker → · Palette generator →

#412C98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva