#41227A#41227A

#41227A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.141 H 294.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#41227A
RGBrgb(65, 34, 122)
HSLhsl(261, 56%, 31%)
HSVhsv(261, 72%, 48%)
CMYKcmyk(46.7%, 72.1%, 0%, 52.2%)
CIE-LABlab(22.56, 35.76, -44.86)
CIE-LCHlch(22.56, 57.37, 308.56°)
OKLaboklab(34.82% 0.0571 -0.1284)
OKLCHoklch(34.82% 0.141 294)
XYZxyz(6.2639, 3.6728, 18.7875)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41227A #5B7A22
analogous
#222F7A #41227A #6D227A
triadic
#41227A #7A4122 #227A41
tetradic
#41227A #7A222F #5B7A22 #227A6D
square
#41227A #7A222F #5B7A22 #227A6D
split-complementary
#41227A #7A6D22 #2F7A22
monochromatic
#0E071A #27154A #41227A #5A2FAA #784ACD

Accessibility & contrast

On white

12.11
#41227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#41227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41227A
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41227A#FFFFFF#000000##FFFFFF
##41227A1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#31384B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #41227a;
/* rgb */ color: rgb(65, 34, 122);
/* oklch */ color: oklch(34.8% 0.141 294.0);
Tailwind
colors: {
  custom: {
    50: '#7b60a1',
    500: '#41227a',
    950: '#000000',
  },
}
SCSS
$custom: #41227a;
$custom-light: #7b60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#41227a",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 261.136,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34815,
    "c": 0.14055,
    "h": 294
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#41227A
secondary
#8AAD4B
accent
#E048AA
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #41227A

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

Preview Lab → · Contrast checker → · Palette generator →

#41227A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva