#412896#412896

#412896 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.168 H 285.7°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#412896
RGBrgb(65, 40, 150)
HSLhsl(254, 58%, 37%)
HSVhsv(254, 73%, 59%)
CMYKcmyk(56.7%, 73.3%, 0%, 41.2%)
CIE-LABlab(26.28, 40.84, -56.28)
CIE-LCHlch(26.28, 69.53, 305.96°)
OKLaboklab(38.25% 0.0456 -0.1619)
OKLCHoklch(38.25% 0.168 285.7)
XYZxyz(8.4421, 4.8429, 29.3382)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412896 #7D9628
analogous
#284696 #412896 #782896
triadic
#412896 #964128 #289641
tetradic
#412896 #962846 #7D9628 #289678
square
#412896 #962846 #7D9628 #289678
split-complementary
#412896 #967828 #469628
monochromatic
#170E35 #2C1B66 #412896 #5635C6 #7D63D5

Accessibility & contrast

On white

10.67
#412896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#412896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412896
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412896#FFFFFF#000000##FFFFFF
##4128961.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#1A465C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412896;
/* rgb */ color: rgb(65, 40, 150);
/* oklch */ color: oklch(38.2% 0.168 285.7);
Tailwind
colors: {
  custom: {
    50: '#7f64b6',
    500: '#412896',
    950: '#000000',
  },
}
SCSS
$custom: #412896;
$custom-light: #7f64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#412896",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 253.636,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38245,
    "c": 0.16823,
    "h": 285.7
  },
  "luminance": 0.04843
}

Semantic roles & 50–950 ramp

primary
#412896
secondary
#A6BB5F
accent
#E147BE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412896

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

Preview Lab → · Contrast checker → · Palette generator →

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