#412398#412398

#412398 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.176 H 286.2°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#412398
RGBrgb(65, 35, 152)
HSLhsl(255, 63%, 37%)
HSVhsv(255, 77%, 60%)
CMYKcmyk(57.2%, 77%, 0%, 40.4%)
CIE-LABlab(25.54, 44.07, -58.72)
CIE-LCHlch(25.54, 73.42, 306.89°)
OKLaboklab(37.78% 0.0491 -0.1691)
OKLCHoklch(37.78% 0.176 286.2)
XYZxyz(8.4468, 4.5924, 30.1410)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412398 #7A9823
analogous
#233F98 #412398 #7C2398
triadic
#412398 #984123 #239841
tetradic
#412398 #98233F #7A9823 #23987C
square
#412398 #98233F #7A9823 #23987C
split-complementary
#412398 #987C23 #3F9823
monochromatic
#160C35 #2C1866 #412398 #562ECA #7C5CD9

Accessibility & contrast

On white

10.95
#412398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#412398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412398
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412398#FFFFFF#000000##FFFFFF
##4123981.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#18445C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412398;
/* rgb */ color: rgb(65, 35, 152);
/* oklch */ color: oklch(37.8% 0.176 286.2);
Tailwind
colors: {
  custom: {
    50: '#8062b7',
    500: '#412398',
    950: '#000000',
  },
}
SCSS
$custom: #412398;
$custom-light: #8062b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412398",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 255.385,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3778,
    "c": 0.17605,
    "h": 286.2
  },
  "luminance": 0.04593
}

Semantic roles & 50–950 ramp

primary
#412398
secondary
#A4BE59
accent
#E642BC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #412398

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

Preview Lab → · Contrast checker → · Palette generator →

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