#412262#412262

#412262 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.8% C 0.110 H 303.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#412262
RGBrgb(65, 34, 98)
HSLhsl(269, 48%, 26%)
HSVhsv(269, 65%, 38%)
CMYKcmyk(33.7%, 65.3%, 0%, 61.6%)
CIE-LABlab(20.63, 28.89, -32.46)
CIE-LCHlch(20.63, 43.46, 311.67°)
OKLaboklab(32.82% 0.0601 -0.092)
OKLCHoklch(32.82% 0.11 303.1)
XYZxyz(4.9561, 3.1497, 11.8998)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412262 #436222
analogous
#222362 #412262 #612262
triadic
#412262 #624122 #226241
tetradic
#412262 #622223 #436222 #226261
square
#412262 #622223 #436222 #226261
split-complementary
#412262 #626122 #236222
monochromatic
#0F0817 #231235 #412262 #5F328F #7D42BD

Accessibility & contrast

On white

12.88
#412262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412262
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412262#FFFFFF#000000##FFFFFF
##4122621.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#103261
Tritanopia (blue-blind)
#3B2F3E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #412262;
/* rgb */ color: rgb(65, 34, 98);
/* oklch */ color: oklch(32.8% 0.110 303.1);
Tailwind
colors: {
  custom: {
    50: '#785f8f',
    500: '#412262',
    950: '#000000',
  },
}
SCSS
$custom: #412262;
$custom-light: #785f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#412262",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 98
  },
  "hsl": {
    "h": 269.063,
    "s": 48.485,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32822,
    "c": 0.10984,
    "h": 303.1
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#412262
secondary
#71964A
accent
#D85096
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #412262

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

Preview Lab → · Contrast checker → · Palette generator →

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