#330538#330538

#330538 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.100 H 323.6°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#330538
RGBrgb(51, 5, 56)
HSLhsl(294, 84%, 12%)
HSVhsv(294, 91%, 22%)
CMYKcmyk(8.9%, 91.1%, 0%, 78%)
CIE-LABlab(9.78, 29.91, -21.14)
CIE-LCHlch(9.78, 36.62, 324.75°)
OKLaboklab(23.55% 0.0802 -0.0591)
OKLCHoklch(23.55% 0.1 323.6)
XYZxyz(2.1333, 1.0980, 3.8402)
Luminance0.0110 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330538 #0A3805
analogous
#1A0538 #330538 #380524
triadic
#330538 #383305 #053833
tetradic
#330538 #381A05 #0A3805 #052438
square
#330538 #381A05 #0A3805 #052438
split-complementary
#330538 #243805 #05381A
monochromatic
#1A031C #1A031C #330538 #660A70 #990FA8

Accessibility & contrast

On white

17.22
#330538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#330538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330538
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330538#FFFFFF#000000##FFFFFF
##3305381.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#0E1D37
Tritanopia (blue-blind)
#340F1E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #330538;
/* rgb */ color: rgb(51, 5, 56);
/* oklch */ color: oklch(23.5% 0.100 323.6);
Tailwind
colors: {
  custom: {
    50: '#6d4b6f',
    500: '#330538',
    950: '#000000',
  },
}
SCSS
$custom: #330538;
$custom-light: #6d4b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#330538",
  "rgb": {
    "r": 51,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 294.118,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.2355,
    "c": 0.09964,
    "h": 323.6
  },
  "luminance": 0.01098
}

Semantic roles & 50–950 ramp

primary
#330538
secondary
#287920
accent
#FA2E42
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #330538

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

Preview Lab → · Contrast checker → · Palette generator →

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