#412188#412188

#412188 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.159 H 290.2°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#412188
RGBrgb(65, 33, 136)
HSLhsl(259, 61%, 33%)
HSVhsv(259, 76%, 53%)
CMYKcmyk(52.2%, 75.7%, 0%, 46.7%)
CIE-LABlab(23.63, 40.39, -51.94)
CIE-LCHlch(23.63, 65.80, 307.87°)
OKLaboklab(35.97% 0.055 -0.1492)
OKLCHoklch(35.97% 0.159 290.2)
XYZxyz(7.1665, 3.9888, 23.6801)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412188 #688821
analogous
#213488 #412188 #742188
triadic
#412188 #884121 #218841
tetradic
#412188 #882134 #688821 #218874
square
#412188 #882134 #688821 #218874
split-complementary
#412188 #887421 #348821
monochromatic
#120925 #291557 #412188 #592DB9 #784FD4

Accessibility & contrast

On white

11.68
#412188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#412188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412188
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412188#FFFFFF#000000##FFFFFF
##4121881.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#283D53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #412188;
/* rgb */ color: rgb(65, 33, 136);
/* oklch */ color: oklch(36.0% 0.159 290.2);
Tailwind
colors: {
  custom: {
    50: '#7d60ac',
    500: '#412188',
    950: '#000000',
  },
}
SCSS
$custom: #412188;
$custom-light: #7d60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#412188",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 258.641,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.15899,
    "h": 290.2
  },
  "luminance": 0.03989
}

Semantic roles & 50–950 ramp

primary
#412188
secondary
#97B84D
accent
#E444B2
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #412188

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

Preview Lab → · Contrast checker → · Palette generator →

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