#412277#412277

#412277 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.137 H 294.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#412277
RGBrgb(65, 34, 119)
HSLhsl(262, 56%, 30%)
HSVhsv(262, 71%, 47%)
CMYKcmyk(45.4%, 71.4%, 0%, 53.3%)
CIE-LABlab(22.30, 34.89, -43.37)
CIE-LCHlch(22.30, 55.66, 308.81°)
OKLaboklab(34.55% 0.0577 -0.124)
OKLCHoklch(34.55% 0.137 294.9)
XYZxyz(6.0809, 3.5996, 17.8236)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412277 #587722
analogous
#222E77 #412277 #6B2277
triadic
#412277 #774122 #227741
tetradic
#412277 #77222E #587722 #22776B
square
#412277 #77222E #587722 #22776B
split-complementary
#412277 #776B22 #2E7722
monochromatic
#0D0718 #271447 #412277 #5B30A7 #7849CB

Accessibility & contrast

On white

12.21
#412277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#412277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412277
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412277#FFFFFF#000000##FFFFFF
##4122771.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#323749
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #412277;
/* rgb */ color: rgb(65, 34, 119);
/* oklch */ color: oklch(34.5% 0.137 294.9);
Tailwind
colors: {
  custom: {
    50: '#7b609f',
    500: '#412277',
    950: '#000000',
  },
}
SCSS
$custom: #412277;
$custom-light: #7b609f;
$custom-dark: #000000;
JSON
{
  "hex": "#412277",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 261.882,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.3455,
    "c": 0.13679,
    "h": 294.9
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#412277
secondary
#87AA4B
accent
#DF49A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #412277

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

Preview Lab → · Contrast checker → · Palette generator →

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