#412997#412997

#412997 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.168 H 285.3°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#412997
RGBrgb(65, 41, 151)
HSLhsl(253, 57%, 38%)
HSVhsv(253, 73%, 59%)
CMYKcmyk(57%, 72.8%, 0%, 40.8%)
CIE-LABlab(26.57, 40.59, -56.41)
CIE-LCHlch(26.57, 69.50, 305.73°)
OKLaboklab(38.48% 0.0446 -0.1623)
OKLCHoklch(38.48% 0.168 285.3)
XYZxyz(8.5571, 4.9436, 29.7755)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412997 #7F9729
analogous
#294897 #412997 #782997
triadic
#412997 #974129 #299741
tetradic
#412997 #972948 #7F9729 #299778
square
#412997 #972948 #7F9729 #299778
split-complementary
#412997 #977829 #489729
monochromatic
#180F37 #2C1C67 #412997 #5636C7 #7E65D5

Accessibility & contrast

On white

10.56
#412997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#412997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412997
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412997#FFFFFF#000000##FFFFFF
##4129971.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#18475D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #412997;
/* rgb */ color: rgb(65, 41, 151);
/* oklch */ color: oklch(38.5% 0.168 285.3);
Tailwind
colors: {
  custom: {
    50: '#7f65b7',
    500: '#412997',
    950: '#000000',
  },
}
SCSS
$custom: #412997;
$custom-light: #7f65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412997",
  "rgb": {
    "r": 65,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 253.091,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3848,
    "c": 0.16834,
    "h": 285.3
  },
  "luminance": 0.04944
}

Semantic roles & 50–950 ramp

primary
#412997
secondary
#A7BB61
accent
#E147BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412997

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

Preview Lab → · Contrast checker → · Palette generator →

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