#412198#412198

#412198 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.178 H 286.5°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#412198
RGBrgb(65, 33, 152)
HSLhsl(256, 64%, 36%)
HSVhsv(256, 78%, 60%)
CMYKcmyk(57.2%, 78.3%, 0%, 40.4%)
CIE-LABlab(25.19, 45.07, -59.30)
CIE-LCHlch(25.19, 74.48, 307.24°)
OKLaboklab(37.54% 0.0506 -0.1707)
OKLCHoklch(37.54% 0.178 286.5)
XYZxyz(8.3896, 4.4781, 30.1219)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412198 #789821
analogous
#213D98 #412198 #7D2198
triadic
#412198 #984121 #219841
tetradic
#412198 #98213D #789821 #21987D
square
#412198 #98213D #789821 #21987D
split-complementary
#412198 #987D21 #3D9821
monochromatic
#160B33 #2B1666 #412198 #572CCA #7C59DB

Accessibility & contrast

On white

11.08
#412198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#412198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412198
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412198#FFFFFF#000000##FFFFFF
##4121981.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#18435C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412198;
/* rgb */ color: rgb(65, 33, 152);
/* oklch */ color: oklch(37.5% 0.178 286.5);
Tailwind
colors: {
  custom: {
    50: '#8061b7',
    500: '#412198',
    950: '#000000',
  },
}
SCSS
$custom: #412198;
$custom-light: #8061b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412198",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 256.134,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37537,
    "c": 0.17805,
    "h": 286.5
  },
  "luminance": 0.04479
}

Semantic roles & 50–950 ramp

primary
#412198
secondary
#A3BF56
accent
#E740BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #412198

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

Preview Lab → · Contrast checker → · Palette generator →

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