#330540#330540

#330540 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.107 H 317.3°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#330540
RGBrgb(51, 5, 64)
HSLhsl(287, 86%, 14%)
HSVhsv(287, 92%, 25%)
CMYKcmyk(20.3%, 92.2%, 0%, 74.9%)
CIE-LABlab(10.43, 31.64, -25.83)
CIE-LCHlch(10.43, 40.85, 320.77°)
OKLaboklab(24.21% 0.0788 -0.0728)
OKLCHoklch(24.21% 0.107 317.3)
XYZxyz(2.3448, 1.1826, 4.9543)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330540 #124005
analogous
#150540 #330540 #40052F
triadic
#330540 #403305 #054033
tetradic
#330540 #401505 #124005 #052F40
square
#330540 #401505 #124005 #052F40
split-complementary
#330540 #2F4005 #054015
monochromatic
#17021C #17021C #330540 #600979 #8D0EB2

Accessibility & contrast

On white

16.98
#330540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330540
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330540#FFFFFF#000000##FFFFFF
##3305401.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#061E3F
Tritanopia (blue-blind)
#321323
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #330540;
/* rgb */ color: rgb(51, 5, 64);
/* oklch */ color: oklch(24.2% 0.107 317.3);
Tailwind
colors: {
  custom: {
    50: '#6d4c75',
    500: '#330540',
    950: '#000000',
  },
}
SCSS
$custom: #330540;
$custom-light: #6d4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#330540",
  "rgb": {
    "r": 51,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 286.78,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.2421,
    "c": 0.10733,
    "h": 317.3
  },
  "luminance": 0.01183
}

Semantic roles & 50–950 ramp

primary
#330540
secondary
#358120
accent
#FC2C5A
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #330540

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

Preview Lab → · Contrast checker → · Palette generator →

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