#330541#330541

#330541 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.108 H 316.5°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#330541
RGBrgb(51, 5, 65)
HSLhsl(286, 86%, 14%)
HSVhsv(286, 92%, 25%)
CMYKcmyk(21.5%, 92.3%, 0%, 74.5%)
CIE-LABlab(10.51, 31.86, -26.41)
CIE-LCHlch(10.51, 41.38, 320.35°)
OKLaboklab(24.3% 0.0786 -0.0745)
OKLCHoklch(24.3% 0.108 316.5)
XYZxyz(2.3735, 1.1941, 5.1055)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330541 #134105
analogous
#150541 #330541 #410531
triadic
#330541 #413305 #054133
tetradic
#330541 #411505 #134105 #053141
square
#330541 #411505 #134105 #053141
split-complementary
#330541 #314105 #054115
monochromatic
#16021C #16021C #330541 #60097A #8C0EB3

Accessibility & contrast

On white

16.95
#330541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#330541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330541
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330541#FFFFFF#000000##FFFFFF
##3305411.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#051E40
Tritanopia (blue-blind)
#321324
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #330541;
/* rgb */ color: rgb(51, 5, 65);
/* oklch */ color: oklch(24.3% 0.108 316.5);
Tailwind
colors: {
  custom: {
    50: '#6e4c76',
    500: '#330541',
    950: '#000000',
  },
}
SCSS
$custom: #330541;
$custom-light: #6e4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#330541",
  "rgb": {
    "r": 51,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 286,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24296,
    "c": 0.1083,
    "h": 316.5
  },
  "luminance": 0.01194
}

Semantic roles & 50–950 ramp

primary
#330541
secondary
#378120
accent
#FC2C5C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #330541

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

Preview Lab → · Contrast checker → · Palette generator →

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