#412498#412498

#412498 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.175 H 286.0°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#412498
RGBrgb(65, 36, 152)
HSLhsl(255, 62%, 37%)
HSVhsv(255, 76%, 60%)
CMYKcmyk(57.2%, 76.3%, 0%, 40.4%)
CIE-LABlab(25.72, 43.56, -58.43)
CIE-LCHlch(25.72, 72.88, 306.71°)
OKLaboklab(37.91% 0.0483 -0.1682)
OKLCHoklch(37.91% 0.175 286)
XYZxyz(8.4766, 4.6521, 30.1510)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412498 #7B9824
analogous
#244198 #412498 #7B2498
triadic
#412498 #984124 #249841
tetradic
#412498 #982441 #7B9824 #24987B
square
#412498 #982441 #7B9824 #24987B
split-complementary
#412498 #987B24 #419824
monochromatic
#170D35 #2C1867 #412498 #5630C9 #7C5ED9

Accessibility & contrast

On white

10.88
#412498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#412498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412498
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412498#FFFFFF#000000##FFFFFF
##4124981.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #412498;
/* rgb */ color: rgb(65, 36, 152);
/* oklch */ color: oklch(37.9% 0.175 286.0);
Tailwind
colors: {
  custom: {
    50: '#8062b7',
    500: '#412498',
    950: '#000000',
  },
}
SCSS
$custom: #412498;
$custom-light: #8062b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412498",
  "rgb": {
    "r": 65,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 255,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37906,
    "c": 0.17502,
    "h": 286
  },
  "luminance": 0.04653
}

Semantic roles & 50–950 ramp

primary
#412498
secondary
#A5BE5A
accent
#E543BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412498

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

Preview Lab → · Contrast checker → · Palette generator →

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