#412197#412197

#412197 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.177 H 286.7°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#412197
RGBrgb(65, 33, 151)
HSLhsl(256, 64%, 36%)
HSVhsv(256, 78%, 59%)
CMYKcmyk(57%, 78.1%, 0%, 40.8%)
CIE-LABlab(25.09, 44.78, -58.85)
CIE-LCHlch(25.09, 73.95, 307.27°)
OKLaboklab(37.44% 0.0509 -0.1694)
OKLCHoklch(37.44% 0.177 286.7)
XYZxyz(8.3081, 4.4454, 29.6924)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412197 #779721
analogous
#213C97 #412197 #7C2197
triadic
#412197 #974121 #219741
tetradic
#412197 #97213C #779721 #21977C
square
#412197 #97213C #779721 #21977C
split-complementary
#412197 #977C21 #3C9721
monochromatic
#160B33 #2B1665 #412197 #572CC9 #7B58DA

Accessibility & contrast

On white

11.12
#412197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#412197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412197
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412197#FFFFFF#000000##FFFFFF
##4121971.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#19435B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412197;
/* rgb */ color: rgb(65, 33, 151);
/* oklch */ color: oklch(37.4% 0.177 286.7);
Tailwind
colors: {
  custom: {
    50: '#8061b7',
    500: '#412197',
    950: '#000000',
  },
}
SCSS
$custom: #412197;
$custom-light: #8061b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412197",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 256.271,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37436,
    "c": 0.17687,
    "h": 286.7
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#412197
secondary
#A2BE55
accent
#E741BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #412197

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

Preview Lab → · Contrast checker → · Palette generator →

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