#412172#412172

#412172 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.132 H 296.9°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#412172
RGBrgb(65, 33, 114)
HSLhsl(264, 55%, 29%)
HSVhsv(264, 71%, 45%)
CMYKcmyk(43%, 71.1%, 0%, 55.3%)
CIE-LABlab(21.68, 34.00, -41.18)
CIE-LCHlch(21.68, 53.40, 309.55°)
OKLaboklab(33.97% 0.0596 -0.1176)
OKLCHoklch(33.97% 0.132 296.9)
XYZxyz(5.7603, 3.4263, 16.2742)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412172 #527221
analogous
#212A72 #412172 #6A2172
triadic
#412172 #724121 #217241
tetradic
#412172 #72212A #527221 #21726A
square
#412172 #72212A #527221 #21726A
split-complementary
#412172 #726A21 #2A7221
monochromatic
#0E0718 #261343 #412172 #5C2FA1 #7944C9

Accessibility & contrast

On white

12.46
#412172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#412172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412172
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412172#FFFFFF#000000##FFFFFF
##4121721.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#353446
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #412172;
/* rgb */ color: rgb(65, 33, 114);
/* oklch */ color: oklch(34.0% 0.132 296.9);
Tailwind
colors: {
  custom: {
    50: '#7a5f9b',
    500: '#412172',
    950: '#000000',
  },
}
SCSS
$custom: #412172;
$custom-light: #7a5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#412172",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 263.704,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33971,
    "c": 0.13185,
    "h": 296.9
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#412172
secondary
#81A549
accent
#DE49A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #412172

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

Preview Lab → · Contrast checker → · Palette generator →

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