#41127F#41127F

#41127F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.164 H 295.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#41127F
RGBrgb(65, 18, 127)
HSLhsl(266, 75%, 28%)
HSVhsv(266, 86%, 50%)
CMYKcmyk(48.8%, 85.8%, 0%, 50.2%)
CIE-LABlab(20.40, 44.68, -51.58)
CIE-LCHlch(20.40, 68.24, 310.90°)
OKLaboklab(33.44% 0.0696 -0.148)
OKLCHoklch(33.44% 0.164 295.2)
XYZxyz(6.2260, 3.0886, 20.3427)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41127F #507F12
analogous
#12197F #41127F #77127F
triadic
#41127F #7F4112 #127F41
tetradic
#41127F #7F1219 #507F12 #127F77
square
#41127F #7F1219 #507F12 #127F77
split-complementary
#41127F #7F7712 #197F12
monochromatic
#0E041B #260A49 #41127F #5C1AB5 #792BE1

Accessibility & contrast

On white

12.98
#41127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#41127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41127F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41127F#FFFFFF#000000##FFFFFF
##41127F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#2F334A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #41127f;
/* rgb */ color: rgb(65, 18, 127);
/* oklch */ color: oklch(33.4% 0.164 295.2);
Tailwind
colors: {
  custom: {
    50: '#7d58a5',
    500: '#41127f',
    950: '#000000',
  },
}
SCSS
$custom: #41127f;
$custom-light: #7d58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#41127f",
  "rgb": {
    "r": 65,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 265.872,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33442,
    "c": 0.16353,
    "h": 295.2
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#41127F
secondary
#7FB538
accent
#F236A1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #41127F

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

Preview Lab → · Contrast checker → · Palette generator →

#41127F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva