#412682#412682

#412682 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.145 H 290.7°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#412682
RGBrgb(65, 38, 130)
HSLhsl(258, 55%, 33%)
HSVhsv(258, 71%, 51%)
CMYKcmyk(50%, 70.8%, 0%, 49%)
CIE-LABlab(24.07, 35.88, -47.46)
CIE-LCHlch(24.07, 59.50, 307.09°)
OKLaboklab(36.11% 0.0515 -0.1361)
OKLCHoklch(36.11% 0.145 290.7)
XYZxyz(6.9012, 4.1215, 21.5467)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412682 #678226
analogous
#263982 #412682 #6F2682
triadic
#412682 #824126 #268241
tetradic
#412682 #822639 #678226 #26826F
square
#412682 #822639 #678226 #26826F
split-complementary
#412682 #826F26 #398226
monochromatic
#120A23 #291853 #412682 #5934B1 #7855CD

Accessibility & contrast

On white

11.51
#412682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#412682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412682
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412682#FFFFFF#000000##FFFFFF
##4126821.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#2C3D51
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #412682;
/* rgb */ color: rgb(65, 38, 130);
/* oklch */ color: oklch(36.1% 0.145 290.7);
Tailwind
colors: {
  custom: {
    50: '#7c62a7',
    500: '#412682',
    950: '#000000',
  },
}
SCSS
$custom: #412682;
$custom-light: #7c62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#412682",
  "rgb": {
    "r": 65,
    "g": 38,
    "b": 130
  },
  "hsl": {
    "h": 257.609,
    "s": 54.762,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3611,
    "c": 0.14549,
    "h": 290.7
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#412682
secondary
#96B252
accent
#DE4AB3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #412682

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

Preview Lab → · Contrast checker → · Palette generator →

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