#412752#412752

#412752 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.6% C 0.079 H 310.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#412752
RGBrgb(65, 39, 82)
HSLhsl(276, 36%, 24%)
HSVhsv(276, 52%, 32%)
CMYKcmyk(20.7%, 52.4%, 0%, 67.8%)
CIE-LABlab(20.77, 21.44, -21.62)
CIE-LCHlch(20.77, 30.45, 314.75°)
OKLaboklab(32.58% 0.0517 -0.0603)
OKLCHoklch(32.58% 0.079 310.6)
XYZxyz(4.4282, 3.1841, 8.3623)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412752 #385227
analogous
#2B2752 #412752 #52274D
triadic
#412752 #524127 #275241
tetradic
#412752 #522B27 #385227 #274D52
square
#412752 #522B27 #385227 #274D52
split-complementary
#412752 #4D5227 #27522B
monochromatic
#100A15 #201329 #412752 #623B7B #834EA5

Accessibility & contrast

On white

12.83
#412752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#412752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412752
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412752#FFFFFF#000000##FFFFFF
##4127521.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3154
Deuteranopia (green-blind)
#243251
Tritanopia (blue-blind)
#3F2E38
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #412752;
/* rgb */ color: rgb(65, 39, 82);
/* oklch */ color: oklch(32.6% 0.079 310.6);
Tailwind
colors: {
  custom: {
    50: '#776283',
    500: '#412752',
    950: '#000000',
  },
}
SCSS
$custom: #412752;
$custom-light: #776283;
$custom-dark: #000000;
JSON
{
  "hex": "#412752",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 82
  },
  "hsl": {
    "h": 276.279,
    "s": 35.537,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3258,
    "c": 0.07939,
    "h": 310.6
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#412752
secondary
#658550
accent
#CC5C88
background
#F7F5F8
surface
#EDEAEF
border
#C8C6CA
text
#09050A
muted
#7B797C

Preview Lab

Preview with #412752

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

Preview Lab → · Contrast checker → · Palette generator →

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