#412166#412166

#412166 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 33.0% C 0.117 H 301.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#412166
RGBrgb(65, 33, 102)
HSLhsl(268, 51%, 26%)
HSVhsv(268, 68%, 40%)
CMYKcmyk(36.3%, 67.6%, 0%, 60%)
CIE-LABlab(20.72, 30.60, -34.95)
CIE-LCHlch(20.72, 46.45, 311.20°)
OKLaboklab(32.98% 0.0611 -0.0993)
OKLCHoklch(32.98% 0.117 301.6)
XYZxyz(5.1215, 3.1708, 12.9100)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412166 #466621
analogous
#212466 #412166 #642166
triadic
#412166 #664121 #216641
tetradic
#412166 #662124 #466621 #216664
square
#412166 #662124 #466621 #216664
split-complementary
#412166 #666421 #246621
monochromatic
#0F0717 #241238 #412166 #5E3094 #7C40C1

Accessibility & contrast

On white

12.85
#412166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#412166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412166
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412166#FFFFFF#000000##FFFFFF
##4121661.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#073264
Tritanopia (blue-blind)
#393040
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #412166;
/* rgb */ color: rgb(65, 33, 102);
/* oklch */ color: oklch(33.0% 0.117 301.6);
Tailwind
colors: {
  custom: {
    50: '#795e92',
    500: '#412166',
    950: '#000000',
  },
}
SCSS
$custom: #412166;
$custom-light: #795e92;
$custom-dark: #000000;
JSON
{
  "hex": "#412166",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 102
  },
  "hsl": {
    "h": 267.826,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32977,
    "c": 0.11658,
    "h": 301.6
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#412166
secondary
#749A49
accent
#DB4D99
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #412166

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

Preview Lab → · Contrast checker → · Palette generator →

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