#412287#412287

#412287 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.157 H 290.3°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#412287
RGBrgb(65, 34, 135)
HSLhsl(258, 60%, 33%)
HSVhsv(258, 75%, 53%)
CMYKcmyk(51.9%, 74.8%, 0%, 47.1%)
CIE-LABlab(23.73, 39.58, -51.16)
CIE-LCHlch(23.73, 64.68, 307.72°)
OKLaboklab(36.01% 0.0543 -0.1469)
OKLCHoklch(36.01% 0.157 290.3)
XYZxyz(7.1239, 4.0168, 23.3169)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412287 #688722
analogous
#223587 #412287 #732287
triadic
#412287 #874122 #228741
tetradic
#412287 #872235 #688722 #228773
square
#412287 #872235 #688722 #228773
split-complementary
#412287 #877322 #358722
monochromatic
#120925 #291656 #412287 #592EB8 #7850D3

Accessibility & contrast

On white

11.64
#412287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#412287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412287
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412287#FFFFFF#000000##FFFFFF
##4122871.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#293D52
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #412287;
/* rgb */ color: rgb(65, 34, 135);
/* oklch */ color: oklch(36.0% 0.157 290.3);
Tailwind
colors: {
  custom: {
    50: '#7d60ab',
    500: '#412287',
    950: '#000000',
  },
}
SCSS
$custom: #412287;
$custom-light: #7d60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412287",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 258.416,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36006,
    "c": 0.15662,
    "h": 290.3
  },
  "luminance": 0.04017
}

Semantic roles & 50–950 ramp

primary
#412287
secondary
#97B74E
accent
#E345B2
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #412287

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

Preview Lab → · Contrast checker → · Palette generator →

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