#41217F#41217F

#41217F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.148 H 292.7°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#41217F
RGBrgb(65, 33, 127)
HSLhsl(260, 59%, 31%)
HSVhsv(260, 74%, 50%)
CMYKcmyk(48.8%, 74%, 0%, 50.2%)
CIE-LABlab(22.80, 37.77, -47.63)
CIE-LCHlch(22.80, 60.79, 308.41°)
OKLaboklab(35.13% 0.0571 -0.1365)
OKLCHoklch(35.13% 0.148 292.7)
XYZxyz(6.5535, 3.7436, 20.4518)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41217F #5F7F21
analogous
#21307F #41217F #70217F
triadic
#41217F #7F4121 #217F41
tetradic
#41217F #7F2130 #5F7F21 #217F70
square
#41217F #7F2130 #5F7F21 #217F70
split-complementary
#41217F #7F7021 #307F21
monochromatic
#0F081E #28144E #41217F #5A2EB0 #784AD0

Accessibility & contrast

On white

12.01
#41217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#41217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41217F
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41217F#FFFFFF#000000##FFFFFF
##41217F1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#2E394E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #41217f;
/* rgb */ color: rgb(65, 33, 127);
/* oklch */ color: oklch(35.1% 0.148 292.7);
Tailwind
colors: {
  custom: {
    50: '#7c5fa5',
    500: '#41217f',
    950: '#000000',
  },
}
SCSS
$custom: #41217f;
$custom-light: #7c5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#41217f",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 260.426,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35127,
    "c": 0.14802,
    "h": 292.7
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

primary
#41217F
secondary
#8EB24A
accent
#E246AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #41217F

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

Preview Lab → · Contrast checker → · Palette generator →

#41217F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva