#412397#412397

#412397 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.175 H 286.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#412397
RGBrgb(65, 35, 151)
HSLhsl(256, 62%, 36%)
HSVhsv(256, 77%, 59%)
CMYKcmyk(57%, 76.8%, 0%, 40.8%)
CIE-LABlab(25.44, 43.78, -58.27)
CIE-LCHlch(25.44, 72.88, 306.92°)
OKLaboklab(37.68% 0.0494 -0.1677)
OKLCHoklch(37.68% 0.175 286.4)
XYZxyz(8.3652, 4.5598, 29.7115)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412397 #799723
analogous
#233F97 #412397 #7B2397
triadic
#412397 #974123 #239741
tetradic
#412397 #97233F #799723 #23977B
square
#412397 #97233F #799723 #23977B
split-complementary
#412397 #977B23 #3F9723
monochromatic
#160C34 #2C1765 #412397 #562FC9 #7C5BD9

Accessibility & contrast

On white

10.98
#412397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#412397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412397
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412397#FFFFFF#000000##FFFFFF
##4123971.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#19445C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412397;
/* rgb */ color: rgb(65, 35, 151);
/* oklch */ color: oklch(37.7% 0.175 286.4);
Tailwind
colors: {
  custom: {
    50: '#8062b7',
    500: '#412397',
    950: '#000000',
  },
}
SCSS
$custom: #412397;
$custom-light: #8062b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412397",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 255.517,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37681,
    "c": 0.17485,
    "h": 286.4
  },
  "luminance": 0.0456
}

Semantic roles & 50–950 ramp

primary
#412397
secondary
#A3BE58
accent
#E542BB
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #412397

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

Preview Lab → · Contrast checker → · Palette generator →

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