#412795#412795

#412795 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.168 H 286.1°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#412795
RGBrgb(65, 39, 149)
HSLhsl(254, 59%, 37%)
HSVhsv(254, 74%, 58%)
CMYKcmyk(56.4%, 73.8%, 0%, 41.6%)
CIE-LABlab(25.99, 41.08, -56.14)
CIE-LCHlch(25.99, 69.56, 306.19°)
OKLaboklab(38.01% 0.0467 -0.1615)
OKLCHoklch(38.01% 0.168 286.1)
XYZxyz(8.3287, 4.7443, 28.9048)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412795 #7B9527
analogous
#274495 #412795 #782795
triadic
#412795 #954127 #279541
tetradic
#412795 #952744 #7B9527 #279578
square
#412795 #952744 #7B9527 #279578
split-complementary
#412795 #957827 #449527
monochromatic
#170E34 #2C1A64 #412795 #5634C6 #7C61D6

Accessibility & contrast

On white

10.77
#412795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#412795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412795
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412795#FFFFFF#000000##FFFFFF
##4127951.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#1B455B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412795;
/* rgb */ color: rgb(65, 39, 149);
/* oklch */ color: oklch(38.0% 0.168 286.1);
Tailwind
colors: {
  custom: {
    50: '#7f64b5',
    500: '#412795',
    950: '#000000',
  },
}
SCSS
$custom: #412795;
$custom-light: #7f64b5;
$custom-dark: #000000;
JSON
{
  "hex": "#412795",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 254.182,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38011,
    "c": 0.16812,
    "h": 286.1
  },
  "luminance": 0.04745
}

Semantic roles & 50–950 ramp

primary
#412795
secondary
#A5BB5D
accent
#E246BD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412795

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

Preview Lab → · Contrast checker → · Palette generator →

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