#412158#412158

#412158 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.9% C 0.099 H 308.7°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#412158
RGBrgb(65, 33, 88)
HSLhsl(275, 45%, 24%)
HSVhsv(275, 63%, 35%)
CMYKcmyk(26.1%, 62.5%, 0%, 65.5%)
CIE-LABlab(19.71, 26.78, -27.32)
CIE-LCHlch(19.71, 38.26, 314.42°)
OKLaboklab(31.92% 0.0616 -0.0769)
OKLCHoklch(31.92% 0.099 308.7)
XYZxyz(4.4849, 2.9162, 9.5572)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412158 #385821
analogous
#252158 #412158 #582153
triadic
#412158 #584121 #215841
tetradic
#412158 #582521 #385821 #215358
square
#412158 #582521 #385821 #215358
split-complementary
#412158 #535821 #215825
monochromatic
#100816 #20102B #412158 #623285 #8342B1

Accessibility & contrast

On white

13.26
#412158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#412158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412158
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412158#FFFFFF#000000##FFFFFF
##4121581.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2E5A
Deuteranopia (green-blind)
#1A3057
Tritanopia (blue-blind)
#3E2B39
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #412158;
/* rgb */ color: rgb(65, 33, 88);
/* oklch */ color: oklch(31.9% 0.099 308.7);
Tailwind
colors: {
  custom: {
    50: '#785e87',
    500: '#412158',
    950: '#000000',
  },
}
SCSS
$custom: #412158;
$custom-light: #785e87;
$custom-dark: #000000;
JSON
{
  "hex": "#412158",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 274.909,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31919,
    "c": 0.09852,
    "h": 308.7
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#412158
secondary
#658C49
accent
#D55389
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #412158

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

Preview Lab → · Contrast checker → · Palette generator →

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