#412792#412792

#412792 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.164 H 286.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#412792
RGBrgb(65, 39, 146)
HSLhsl(255, 58%, 36%)
HSVhsv(255, 73%, 57%)
CMYKcmyk(55.5%, 73.3%, 0%, 42.7%)
CIE-LABlab(25.71, 40.17, -54.75)
CIE-LCHlch(25.71, 67.90, 306.27°)
OKLaboklab(37.73% 0.0474 -0.1574)
OKLCHoklch(37.73% 0.164 286.7)
XYZxyz(8.0923, 4.6497, 27.6596)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412792 #789227
analogous
#274392 #412792 #772792
triadic
#412792 #924127 #279241
tetradic
#412792 #922743 #789227 #279277
square
#412792 #922743 #789227 #279277
split-complementary
#412792 #927727 #439227
monochromatic
#160D31 #2B1A62 #412792 #5734C2 #7C5FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##412792#FFFFFF#000000##FFFFFF
##4127921.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)
#004095
Deuteranopia (green-blind)
#003A90
Tritanopia (blue-blind)
#1F445A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412792;
/* rgb */ color: rgb(65, 39, 146);
/* oklch */ color: oklch(37.7% 0.164 286.7);
Tailwind
colors: {
  custom: {
    50: '#7f64b3',
    500: '#412792',
    950: '#000000',
  },
}
SCSS
$custom: #412792;
$custom-light: #7f64b3;
$custom-dark: #000000;
JSON
{
  "hex": "#412792",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 254.579,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37726,
    "c": 0.16442,
    "h": 286.7
  },
  "luminance": 0.0465
}

Semantic roles & 50–950 ramp

primary
#412792
secondary
#A3BA5B
accent
#E147BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412792

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

Preview Lab → · Contrast checker → · Palette generator →

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