#412278#412278

#412278 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.138 H 294.6°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#412278
RGBrgb(65, 34, 120)
HSLhsl(262, 56%, 30%)
HSVhsv(262, 72%, 47%)
CMYKcmyk(45.8%, 71.7%, 0%, 52.9%)
CIE-LABlab(22.39, 35.18, -43.87)
CIE-LCHlch(22.39, 56.23, 308.73°)
OKLaboklab(34.64% 0.0575 -0.1255)
OKLCHoklch(34.64% 0.138 294.6)
XYZxyz(6.1413, 3.6238, 18.1415)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412278 #597822
analogous
#222E78 #412278 #6C2278
triadic
#412278 #784122 #227841
tetradic
#412278 #78222E #597822 #22786C
square
#412278 #78222E #597822 #22786C
split-complementary
#412278 #786C22 #2E7822
monochromatic
#0D0719 #271448 #412278 #5B30A8 #7849CB

Accessibility & contrast

On white

12.18
#412278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412278
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412278#FFFFFF#000000##FFFFFF
##4122781.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#32374A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #412278;
/* rgb */ color: rgb(65, 34, 120);
/* oklch */ color: oklch(34.6% 0.138 294.6);
Tailwind
colors: {
  custom: {
    50: '#7b60a0',
    500: '#412278',
    950: '#000000',
  },
}
SCSS
$custom: #412278;
$custom-light: #7b60a0;
$custom-dark: #000000;
JSON
{
  "hex": "#412278",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 261.628,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34638,
    "c": 0.13804,
    "h": 294.6
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#412278
secondary
#88AB4B
accent
#DF49A9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #412278

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

Preview Lab → · Contrast checker → · Palette generator →

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