#412A8A#412A8A

#412A8A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.151 H 287.8°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#412A8A
RGBrgb(65, 42, 138)
HSLhsl(254, 53%, 35%)
HSVhsv(254, 70%, 54%)
CMYKcmyk(52.9%, 69.6%, 0%, 45.9%)
CIE-LABlab(25.61, 36.01, -49.96)
CIE-LCHlch(25.61, 61.59, 305.78°)
OKLaboklab(37.43% 0.0461 -0.1434)
OKLCHoklch(37.43% 0.151 287.8)
XYZxyz(7.5940, 4.6144, 24.5303)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412A8A #738A2A
analogous
#2A438A #412A8A #712A8A
triadic
#412A8A #8A412A #2A8A41
tetradic
#412A8A #8A2A43 #738A2A #2A8A71
square
#412A8A #8A2A43 #738A2A #2A8A71
split-complementary
#412A8A #8A712A #438A2A
monochromatic
#150D2C #2B1C5B #412A8A #5738B9 #7A60CF

Accessibility & contrast

On white

10.92
#412A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#412A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412A8A
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412A8A#FFFFFF#000000##FFFFFF
##412A8A1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#264256
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412a8a;
/* rgb */ color: rgb(65, 42, 138);
/* oklch */ color: oklch(37.4% 0.151 287.8);
Tailwind
colors: {
  custom: {
    50: '#7d65ad',
    500: '#412a8a',
    950: '#000000',
  },
}
SCSS
$custom: #412a8a;
$custom-light: #7d65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#412a8a",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 254.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37428,
    "c": 0.15064,
    "h": 287.8
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#412A8A
secondary
#9FB45B
accent
#DD4BBA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412A8A

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

Preview Lab → · Contrast checker → · Palette generator →

#412A8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva