#412790#412790

#412790 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.162 H 287.2°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#412790
RGBrgb(65, 39, 144)
HSLhsl(255, 57%, 36%)
HSVhsv(255, 73%, 56%)
CMYKcmyk(54.9%, 72.9%, 0%, 43.5%)
CIE-LABlab(25.53, 39.56, -53.81)
CIE-LCHlch(25.53, 66.79, 306.32°)
OKLaboklab(37.54% 0.0478 -0.1547)
OKLCHoklch(37.54% 0.162 287.2)
XYZxyz(7.9380, 4.5881, 26.8475)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412790 #769027
analogous
#274190 #412790 #752790
triadic
#412790 #904127 #279041
tetradic
#412790 #902741 #769027 #279075
square
#412790 #902741 #769027 #279075
split-complementary
#412790 #907527 #419027
monochromatic
#160D30 #2B1A60 #412790 #5734C0 #7B5ED3

Accessibility & contrast

On white

10.95
#412790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#412790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412790
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412790#FFFFFF#000000##FFFFFF
##4127901.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#003A8E
Tritanopia (blue-blind)
#214359
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412790;
/* rgb */ color: rgb(65, 39, 144);
/* oklch */ color: oklch(37.5% 0.162 287.2);
Tailwind
colors: {
  custom: {
    50: '#7e64b1',
    500: '#412790',
    950: '#000000',
  },
}
SCSS
$custom: #412790;
$custom-light: #7e64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#412790",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 254.857,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37538,
    "c": 0.16192,
    "h": 287.2
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#412790
secondary
#A1B95A
accent
#E147BB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412790

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

Preview Lab → · Contrast checker → · Palette generator →

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