#412DA2#412DA2

#412DA2 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.178 H 282.7°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#412DA2
RGBrgb(65, 45, 162)
HSLhsl(250, 57%, 41%)
HSVhsv(250, 72%, 64%)
CMYKcmyk(59.9%, 72.2%, 0%, 36.5%)
CIE-LABlab(28.40, 41.77, -60.12)
CIE-LCHlch(28.40, 73.21, 304.79°)
OKLaboklab(40.1% 0.039 -0.1732)
OKLCHoklch(40.1% 0.178 282.7)
XYZxyz(9.6379, 5.6086, 34.7501)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412DA2 #8EA22D
analogous
#2D54A2 #412DA2 #7B2DA2
triadic
#412DA2 #A2412D #2DA241
tetradic
#412DA2 #A22D54 #8EA22D #2DA27B
square
#412DA2 #A22D54 #8EA22D #2DA27B
split-complementary
#412DA2 #A27B2D #54A22D
monochromatic
#1B1242 #2E2072 #412DA2 #5942CA #8372D8

Accessibility & contrast

On white

9.90
#412DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#412DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412DA2
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412DA2#FFFFFF#000000##FFFFFF
##412DA21.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003FA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #412da2;
/* rgb */ color: rgb(65, 45, 162);
/* oklch */ color: oklch(40.1% 0.178 282.7);
Tailwind
colors: {
  custom: {
    50: '#8168bf',
    500: '#412da2',
    950: '#000000',
  },
}
SCSS
$custom: #412da2;
$custom-light: #8168bf;
$custom-dark: #000000;
JSON
{
  "hex": "#412da2",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 250.256,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40095,
    "c": 0.17754,
    "h": 282.7
  },
  "luminance": 0.05609
}

Semantic roles & 50–950 ramp

primary
#412DA2
secondary
#B1BF6C
accent
#E048C6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #412DA2

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

Preview Lab → · Contrast checker → · Palette generator →

#412DA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva