#412162#412162

#412162 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.7% C 0.111 H 303.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#412162
RGBrgb(65, 33, 98)
HSLhsl(270, 50%, 26%)
HSVhsv(270, 66%, 38%)
CMYKcmyk(33.7%, 66.3%, 0%, 61.6%)
CIE-LABlab(20.41, 29.48, -32.81)
CIE-LCHlch(20.41, 44.11, 311.94°)
OKLaboklab(32.66% 0.0614 -0.093)
OKLCHoklch(32.66% 0.111 303.4)
XYZxyz(4.9279, 3.0934, 11.8904)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412162 #426221
analogous
#212262 #412162 #612162
triadic
#412162 #624121 #216241
tetradic
#412162 #622122 #426221 #216261
square
#412162 #622122 #426221 #216261
split-complementary
#412162 #626121 #226221
monochromatic
#0F0817 #231234 #412162 #5F3090 #7E40BE

Accessibility & contrast

On white

12.97
#412162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#412162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412162
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412162#FFFFFF#000000##FFFFFF
##4121621.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#0F3161
Tritanopia (blue-blind)
#3B2F3E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #412162;
/* rgb */ color: rgb(65, 33, 98);
/* oklch */ color: oklch(32.7% 0.111 303.4);
Tailwind
colors: {
  custom: {
    50: '#785e8f',
    500: '#412162',
    950: '#000000',
  },
}
SCSS
$custom: #412162;
$custom-light: #785e8f;
$custom-dark: #000000;
JSON
{
  "hex": "#412162",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 269.538,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32662,
    "c": 0.11144,
    "h": 303.4
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#412162
secondary
#709649
accent
#D94F95
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #412162

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

Preview Lab → · Contrast checker → · Palette generator →

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