#412F7C#412F7C

#412F7C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.1% C 0.125 H 289.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#412F7C
RGBrgb(65, 47, 124)
HSLhsl(254, 45%, 34%)
HSVhsv(254, 62%, 49%)
CMYKcmyk(47.6%, 62.1%, 0%, 51.4%)
CIE-LABlab(25.60, 28.60, -41.19)
CIE-LCHlch(25.60, 50.15, 304.77°)
OKLaboklab(37.07% 0.042 -0.1176)
OKLCHoklch(37.07% 0.125 289.7)
XYZxyz(6.8335, 4.6118, 19.5950)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412F7C #6A7C2F
analogous
#2F437C #412F7C #672F7C
triadic
#412F7C #7C412F #2F7C41
tetradic
#412F7C #7C2F43 #6A7C2F #2F7C67
square
#412F7C #7C2F43 #6A7C2F #2F7C67
split-complementary
#412F7C #7C672F #437C2F
monochromatic
#120D23 #2A1E50 #412F7C #5840A8 #7962C3

Accessibility & contrast

On white

10.92
#412F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#412F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412F7C
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412F7C#FFFFFF#000000##FFFFFF
##412F7C1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#2F4150
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412f7c;
/* rgb */ color: rgb(65, 47, 124);
/* oklch */ color: oklch(37.1% 0.125 289.7);
Tailwind
colors: {
  custom: {
    50: '#7b68a2',
    500: '#412f7c',
    950: '#000000',
  },
}
SCSS
$custom: #412f7c;
$custom-light: #7b68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#412f7c",
  "rgb": {
    "r": 65,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 254.026,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37065,
    "c": 0.12492,
    "h": 289.7
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#412F7C
secondary
#98AA5C
accent
#D553B6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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