#412168#412168

#412168 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 33.1% C 0.119 H 300.8°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#412168
RGBrgb(65, 33, 104)
HSLhsl(267, 52%, 27%)
HSVhsv(267, 68%, 41%)
CMYKcmyk(37.5%, 68.3%, 0%, 59.2%)
CIE-LABlab(20.87, 31.16, -36.01)
CIE-LCHlch(20.87, 47.62, 310.87°)
OKLaboklab(33.14% 0.0609 -0.1024)
OKLCHoklch(33.14% 0.119 300.8)
XYZxyz(5.2219, 3.2110, 13.4387)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412168 #486821
analogous
#212568 #412168 #652168
triadic
#412168 #684121 #216841
tetradic
#412168 #682125 #486821 #216865
square
#412168 #682125 #486821 #216865
split-complementary
#412168 #686521 #256821
monochromatic
#0F0717 #24123A #412168 #5E3096 #7B41C3

Accessibility & contrast

On white

12.79
#412168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412168
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412168#FFFFFF#000000##FFFFFF
##4121681.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#033266
Tritanopia (blue-blind)
#393141
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #412168;
/* rgb */ color: rgb(65, 33, 104);
/* oklch */ color: oklch(33.1% 0.119 300.8);
Tailwind
colors: {
  custom: {
    50: '#795e94',
    500: '#412168',
    950: '#000000',
  },
}
SCSS
$custom: #412168;
$custom-light: #795e94;
$custom-dark: #000000;
JSON
{
  "hex": "#412168",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 267.042,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33137,
    "c": 0.11914,
    "h": 300.8
  },
  "luminance": 0.03211
}

Semantic roles & 50–950 ramp

primary
#412168
secondary
#769C49
accent
#DB4D9B
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #412168

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

Preview Lab → · Contrast checker → · Palette generator →

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