#412174#412174

#412174 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.134 H 296.2°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#412174
RGBrgb(65, 33, 116)
HSLhsl(263, 56%, 29%)
HSVhsv(263, 72%, 45%)
CMYKcmyk(44%, 71.6%, 0%, 54.5%)
CIE-LABlab(21.84, 34.58, -42.19)
CIE-LCHlch(21.84, 54.55, 309.33°)
OKLaboklab(34.14% 0.0593 -0.1206)
OKLCHoklch(34.14% 0.134 296.2)
XYZxyz(5.8754, 3.4724, 16.8803)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412174 #547421
analogous
#212A74 #412174 #6B2174
triadic
#412174 #744121 #217441
tetradic
#412174 #74212A #547421 #21746B
square
#412174 #74212A #547421 #21746B
split-complementary
#412174 #746B21 #2A7421
monochromatic
#0D0718 #261344 #412174 #5C2FA4 #7845CA

Accessibility & contrast

On white

12.39
#412174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412174
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412174#FFFFFF#000000##FFFFFF
##4121741.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#343547
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #412174;
/* rgb */ color: rgb(65, 33, 116);
/* oklch */ color: oklch(34.1% 0.134 296.2);
Tailwind
colors: {
  custom: {
    50: '#7b5f9d',
    500: '#412174',
    950: '#000000',
  },
}
SCSS
$custom: #412174;
$custom-light: #7b5f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#412174",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 263.133,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34144,
    "c": 0.13435,
    "h": 296.2
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#412174
secondary
#83A749
accent
#DF49A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #412174

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

Preview Lab → · Contrast checker → · Palette generator →

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