#412298#412298

#412298 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.177 H 286.3°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#412298
RGBrgb(65, 34, 152)
HSLhsl(256, 63%, 36%)
HSVhsv(256, 78%, 60%)
CMYKcmyk(57.2%, 77.6%, 0%, 40.4%)
CIE-LABlab(25.36, 44.58, -59.01)
CIE-LCHlch(25.36, 73.96, 307.07°)
OKLaboklab(37.66% 0.0498 -0.1699)
OKLCHoklch(37.66% 0.177 286.3)
XYZxyz(8.4178, 4.5344, 30.1313)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412298 #799822
analogous
#223E98 #412298 #7C2298
triadic
#412298 #984122 #229841
tetradic
#412298 #98223E #799822 #22987C
square
#412298 #98223E #799822 #22987C
split-complementary
#412298 #987C22 #3E9822
monochromatic
#160C34 #2C1766 #412298 #562DCA #7C5ADA

Accessibility & contrast

On white

11.01
#412298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#412298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412298
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412298#FFFFFF#000000##FFFFFF
##4122981.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #412298;
/* rgb */ color: rgb(65, 34, 152);
/* oklch */ color: oklch(37.7% 0.177 286.3);
Tailwind
colors: {
  custom: {
    50: '#8061b7',
    500: '#412298',
    950: '#000000',
  },
}
SCSS
$custom: #412298;
$custom-light: #8061b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412298",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 255.763,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37657,
    "c": 0.17706,
    "h": 286.3
  },
  "luminance": 0.04535
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #412298

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

Preview Lab → · Contrast checker → · Palette generator →

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