#412297#412297

#412297 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.176 H 286.6°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#412297
RGBrgb(65, 34, 151)
HSLhsl(256, 63%, 36%)
HSVhsv(256, 77%, 59%)
CMYKcmyk(57%, 77.5%, 0%, 40.8%)
CIE-LABlab(25.27, 44.28, -58.56)
CIE-LCHlch(25.27, 73.42, 307.09°)
OKLaboklab(37.56% 0.0501 -0.1686)
OKLCHoklch(37.56% 0.176 286.6)
XYZxyz(8.3362, 4.5018, 29.7018)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412297 #789722
analogous
#223E97 #412297 #7C2297
triadic
#412297 #974122 #229741
tetradic
#412297 #97223E #789722 #22977C
square
#412297 #97223E #789722 #22977C
split-complementary
#412297 #977C22 #3E9722
monochromatic
#160C33 #2B1765 #412297 #572DC9 #7C5ADA

Accessibility & contrast

On white

11.05
#412297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#412297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412297
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412297#FFFFFF#000000##FFFFFF
##4122971.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#19435B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412297;
/* rgb */ color: rgb(65, 34, 151);
/* oklch */ color: oklch(37.6% 0.176 286.6);
Tailwind
colors: {
  custom: {
    50: '#8061b7',
    500: '#412297',
    950: '#000000',
  },
}
SCSS
$custom: #412297;
$custom-light: #8061b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412297",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 255.897,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37557,
    "c": 0.17587,
    "h": 286.6
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#412297
secondary
#A3BE57
accent
#E642BB
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #412297

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

Preview Lab → · Contrast checker → · Palette generator →

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