#412862#412862

#412862 is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.8% C 0.100 H 301.1°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#412862
RGBrgb(65, 40, 98)
HSLhsl(266, 42%, 27%)
HSVhsv(266, 59%, 38%)
CMYKcmyk(33.7%, 59.2%, 0%, 61.6%)
CIE-LABlab(22.03, 25.20, -30.22)
CIE-LCHlch(22.03, 39.35, 309.82°)
OKLaboklab(33.84% 0.0516 -0.0854)
OKLCHoklch(33.84% 0.1 301.1)
XYZxyz(5.1429, 3.5232, 11.9620)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412862 #496228
analogous
#282C62 #412862 #5E2862
triadic
#412862 #624128 #286241
tetradic
#412862 #62282C #496228 #28625E
square
#412862 #62282C #496228 #28625E
split-complementary
#412862 #625E28 #2C6228
monochromatic
#0E0916 #241637 #412862 #5E3A8D #7B4EB7

Accessibility & contrast

On white

12.32
#412862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#412862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412862
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412862#FFFFFF#000000##FFFFFF
##4128621.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103464
Deuteranopia (green-blind)
#193461
Tritanopia (blue-blind)
#3A3340
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #412862;
/* rgb */ color: rgb(65, 40, 98);
/* oklch */ color: oklch(33.8% 0.100 301.1);
Tailwind
colors: {
  custom: {
    50: '#78638f',
    500: '#412862',
    950: '#000000',
  },
}
SCSS
$custom: #412862;
$custom-light: #78638f;
$custom-dark: #000000;
JSON
{
  "hex": "#412862",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 98
  },
  "hsl": {
    "h": 265.862,
    "s": 42.029,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33842,
    "c": 0.09976,
    "h": 301.1
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#412862
secondary
#789551
accent
#D2569C
background
#F7F5F8
surface
#EDEAF0
border
#C8C6CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #412862

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

Preview Lab → · Contrast checker → · Palette generator →

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