#412866#412866

#412866 is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.1% C 0.105 H 299.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#412866
RGBrgb(65, 40, 102)
HSLhsl(264, 44%, 28%)
HSVhsv(264, 61%, 40%)
CMYKcmyk(36.3%, 60.8%, 0%, 60%)
CIE-LABlab(22.30, 26.35, -32.39)
CIE-LCHlch(22.30, 41.76, 309.13°)
OKLaboklab(34.13% 0.0517 -0.0918)
OKLCHoklch(34.13% 0.105 299.4)
XYZxyz(5.3365, 3.6007, 12.9816)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412866 #4D6628
analogous
#282E66 #412866 #602866
triadic
#412866 #664128 #286641
tetradic
#412866 #66282E #4D6628 #286660
square
#412866 #66282E #4D6628 #286660
split-complementary
#412866 #666028 #2E6628
monochromatic
#0E0916 #25173A #412866 #5D3992 #7A4FBA

Accessibility & contrast

On white

12.21
#412866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#412866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412866
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412866#FFFFFF#000000##FFFFFF
##4128661.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3568
Deuteranopia (green-blind)
#153565
Tritanopia (blue-blind)
#393542
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #412866;
/* rgb */ color: rgb(65, 40, 102);
/* oklch */ color: oklch(34.1% 0.105 299.4);
Tailwind
colors: {
  custom: {
    50: '#786392',
    500: '#412866',
    950: '#000000',
  },
}
SCSS
$custom: #412866;
$custom-light: #786392;
$custom-dark: #000000;
JSON
{
  "hex": "#412866",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 102
  },
  "hsl": {
    "h": 264.194,
    "s": 43.662,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34134,
    "c": 0.10531,
    "h": 299.4
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#412866
secondary
#7C9951
accent
#D354A0
background
#F7F5F9
surface
#EDEAF1
border
#C8C6CB
text
#09050D
muted
#7B797E

Preview Lab

Preview with #412866

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

Preview Lab → · Contrast checker → · Palette generator →

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