#412F7E#412F7E

#412F7E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.2% C 0.128 H 289.2°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#412F7E
RGBrgb(65, 47, 126)
HSLhsl(254, 46%, 34%)
HSVhsv(254, 63%, 49%)
CMYKcmyk(48.4%, 62.7%, 0%, 50.6%)
CIE-LABlab(25.75, 29.23, -42.21)
CIE-LCHlch(25.75, 51.34, 304.70°)
OKLaboklab(37.23% 0.0419 -0.1206)
OKLCHoklch(37.23% 0.128 289.2)
XYZxyz(6.9613, 4.6629, 20.2679)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412F7E #6C7E2F
analogous
#2F457E #412F7E #692F7E
triadic
#412F7E #7E412F #2F7E41
tetradic
#412F7E #7E2F45 #6C7E2F #2F7E69
square
#412F7E #7E2F45 #6C7E2F #2F7E69
split-complementary
#412F7E #7E692F #457E2F
monochromatic
#130E25 #2A1E51 #412F7E #5840AB #7963C5

Accessibility & contrast

On white

10.87
#412F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#412F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412F7E
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412F7E#FFFFFF#000000##FFFFFF
##412F7E1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#2E4151
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412f7e;
/* rgb */ color: rgb(65, 47, 126);
/* oklch */ color: oklch(37.2% 0.128 289.2);
Tailwind
colors: {
  custom: {
    50: '#7b68a4',
    500: '#412f7e',
    950: '#000000',
  },
}
SCSS
$custom: #412f7e;
$custom-light: #7b68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#412f7e",
  "rgb": {
    "r": 65,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 253.671,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37225,
    "c": 0.1277,
    "h": 289.2
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#412F7E
secondary
#9AAC5D
accent
#D552B8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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