#412652#412652

#412652 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.4% C 0.081 H 310.9°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#412652
RGBrgb(65, 38, 82)
HSLhsl(277, 37%, 24%)
HSVhsv(277, 54%, 32%)
CMYKcmyk(20.7%, 53.7%, 0%, 67.8%)
CIE-LABlab(20.52, 22.08, -22.02)
CIE-LCHlch(20.52, 31.18, 315.08°)
OKLaboklab(32.39% 0.0533 -0.0614)
OKLCHoklch(32.39% 0.081 310.9)
XYZxyz(4.3958, 3.1193, 8.3515)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412652 #375226
analogous
#2B2652 #412652 #52264D
triadic
#412652 #524126 #265241
tetradic
#412652 #522B26 #375226 #264D52
square
#412652 #522B26 #375226 #264D52
split-complementary
#412652 #4D5226 #26522B
monochromatic
#110A15 #201328 #412652 #62397C #834DA6

Accessibility & contrast

On white

12.93
#412652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#412652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412652
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412652#FFFFFF#000000##FFFFFF
##4126521.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3054
Deuteranopia (green-blind)
#233251
Tritanopia (blue-blind)
#3F2D38
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #412652;
/* rgb */ color: rgb(65, 38, 82);
/* oklch */ color: oklch(32.4% 0.081 310.9);
Tailwind
colors: {
  custom: {
    50: '#776183',
    500: '#412652',
    950: '#000000',
  },
}
SCSS
$custom: #412652;
$custom-light: #776183;
$custom-dark: #000000;
JSON
{
  "hex": "#412652",
  "rgb": {
    "r": 65,
    "g": 38,
    "b": 82
  },
  "hsl": {
    "h": 276.818,
    "s": 36.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32393,
    "c": 0.08133,
    "h": 310.9
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#412652
secondary
#64854F
accent
#CD5B87
background
#F7F5F8
surface
#EDEAEF
border
#C8C6CA
text
#09050A
muted
#7B797C

Preview Lab

Preview with #412652

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

Preview Lab → · Contrast checker → · Palette generator →

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