#412C88#412C88

#412C88 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.145 H 287.8°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#412C88
RGBrgb(65, 44, 136)
HSLhsl(254, 51%, 35%)
HSVhsv(254, 68%, 53%)
CMYKcmyk(52.2%, 67.6%, 0%, 46.7%)
CIE-LABlab(25.87, 34.21, -48.29)
CIE-LCHlch(25.87, 59.18, 305.32°)
OKLaboklab(37.56% 0.0444 -0.1385)
OKLCHoklch(37.56% 0.145 287.8)
XYZxyz(7.5233, 4.7024, 23.7990)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412C88 #73882C
analogous
#2C4588 #412C88 #6F2C88
triadic
#412C88 #88412C #2C8841
tetradic
#412C88 #882C45 #73882C #2C886F
square
#412C88 #882C45 #73882C #2C886F
split-complementary
#412C88 #886F2C #45882C
monochromatic
#150E2C #2B1D5A #412C88 #573BB6 #7A62CC

Accessibility & contrast

On white

10.82
#412C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#412C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412C88
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412C88#FFFFFF#000000##FFFFFF
##412C881.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#274356
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412c88;
/* rgb */ color: rgb(65, 44, 136);
/* oklch */ color: oklch(37.6% 0.145 287.8);
Tailwind
colors: {
  custom: {
    50: '#7d66ab',
    500: '#412c88',
    950: '#000000',
  },
}
SCSS
$custom: #412c88;
$custom-light: #7d66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412c88",
  "rgb": {
    "r": 65,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 253.696,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37564,
    "c": 0.14543,
    "h": 287.8
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#412C88
secondary
#9FB35D
accent
#DB4DBA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412C88

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

Preview Lab → · Contrast checker → · Palette generator →

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