#412758#412758

#412758 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.0% C 0.088 H 306.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#412758
RGBrgb(65, 39, 88)
HSLhsl(272, 39%, 25%)
HSVhsv(272, 56%, 35%)
CMYKcmyk(26.1%, 55.7%, 0%, 65.5%)
CIE-LABlab(21.13, 23.04, -25.05)
CIE-LCHlch(21.13, 34.04, 312.61°)
OKLaboklab(32.97% 0.0524 -0.0703)
OKLCHoklch(32.97% 0.088 306.7)
XYZxyz(4.6666, 3.2795, 9.6178)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412758 #3E5827
analogous
#292758 #412758 #582757
triadic
#412758 #584127 #275841
tetradic
#412758 #582927 #3E5827 #275758
square
#412758 #582927 #3E5827 #275758
split-complementary
#412758 #575827 #275829
monochromatic
#100915 #22142E #412758 #603A82 #804DAD

Accessibility & contrast

On white

12.68
#412758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#412758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412758
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412758#FFFFFF#000000##FFFFFF
##4127581.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18325A
Deuteranopia (green-blind)
#203357
Tritanopia (blue-blind)
#3D303B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #412758;
/* rgb */ color: rgb(65, 39, 88);
/* oklch */ color: oklch(33.0% 0.088 306.7);
Tailwind
colors: {
  custom: {
    50: '#776287',
    500: '#412758',
    950: '#000000',
  },
}
SCSS
$custom: #412758;
$custom-light: #776287;
$custom-dark: #000000;
JSON
{
  "hex": "#412758",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 88
  },
  "hsl": {
    "h": 271.837,
    "s": 38.583,
    "l": 24.902
  },
  "oklch": {
    "l": 0.32968,
    "c": 0.08768,
    "h": 306.7
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#412758
secondary
#6C8B50
accent
#CF5990
background
#F7F5F8
surface
#EDEAEF
border
#C8C6CA
text
#09050B
muted
#7B797C

Preview Lab

Preview with #412758

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

Preview Lab → · Contrast checker → · Palette generator →

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