#412897#412897

#412897 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.169 H 285.5°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#412897
RGBrgb(65, 40, 151)
HSLhsl(254, 58%, 37%)
HSVhsv(254, 74%, 59%)
CMYKcmyk(57%, 73.5%, 0%, 40.8%)
CIE-LABlab(26.38, 41.14, -56.74)
CIE-LCHlch(26.38, 70.08, 305.95°)
OKLaboklab(38.34% 0.0454 -0.1633)
OKLCHoklch(38.34% 0.169 285.5)
XYZxyz(8.5230, 4.8753, 29.7641)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412897 #7E9728
analogous
#284697 #412897 #792897
triadic
#412897 #974128 #289741
tetradic
#412897 #972846 #7E9728 #289779
square
#412897 #972846 #7E9728 #289779
split-complementary
#412897 #977928 #469728
monochromatic
#170E36 #2C1B67 #412897 #5635C7 #7D64D6

Accessibility & contrast

On white

10.63
#412897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#412897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412897
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412897#FFFFFF#000000##FFFFFF
##4128971.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#18465D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412897;
/* rgb */ color: rgb(65, 40, 151);
/* oklch */ color: oklch(38.3% 0.169 285.5);
Tailwind
colors: {
  custom: {
    50: '#7f65b7',
    500: '#412897',
    950: '#000000',
  },
}
SCSS
$custom: #412897;
$custom-light: #7f65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412897",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 253.514,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3834,
    "c": 0.16947,
    "h": 285.5
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#412897
secondary
#A7BC5F
accent
#E146BE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412897

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

Preview Lab → · Contrast checker → · Palette generator →

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