#412271#412271

#412271 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.0% C 0.129 H 297.0°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#412271
RGBrgb(65, 34, 113)
HSLhsl(264, 54%, 29%)
HSVhsv(264, 70%, 44%)
CMYKcmyk(42.5%, 69.9%, 0%, 55.7%)
CIE-LABlab(21.80, 33.15, -40.34)
CIE-LCHlch(21.80, 52.21, 309.41°)
OKLaboklab(34.03% 0.0586 -0.1151)
OKLCHoklch(34.03% 0.129 297)
XYZxyz(5.7319, 3.4600, 15.9854)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412271 #527122
analogous
#222B71 #412271 #692271
triadic
#412271 #714122 #227141
tetradic
#412271 #71222B #527122 #227169
square
#412271 #71222B #527122 #227169
split-complementary
#412271 #716922 #2B7122
monochromatic
#0E0718 #261442 #412271 #5C30A0 #7946C7

Accessibility & contrast

On white

12.41
#412271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412271
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412271#FFFFFF#000000##FFFFFF
##4122711.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#353546
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #412271;
/* rgb */ color: rgb(65, 34, 113);
/* oklch */ color: oklch(34.0% 0.129 297.0);
Tailwind
colors: {
  custom: {
    50: '#7a5f9a',
    500: '#412271',
    950: '#000000',
  },
}
SCSS
$custom: #412271;
$custom-light: #7a5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#412271",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 263.544,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34033,
    "c": 0.12918,
    "h": 297
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#412271
secondary
#81A44A
accent
#DD4BA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #412271

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

Preview Lab → · Contrast checker → · Palette generator →

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