#330542#330542

#330542 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.4% C 0.109 H 315.8°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#330542
RGBrgb(51, 5, 66)
HSLhsl(285, 86%, 14%)
HSVhsv(285, 92%, 26%)
CMYKcmyk(22.7%, 92.4%, 0%, 74.1%)
CIE-LABlab(10.60, 32.09, -26.98)
CIE-LCHlch(10.60, 41.92, 319.95°)
OKLaboklab(24.38% 0.0784 -0.0762)
OKLCHoklch(24.38% 0.109 315.8)
XYZxyz(2.4027, 1.2058, 5.2594)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330542 #144205
analogous
#150542 #330542 #420533
triadic
#330542 #423305 #054233
tetradic
#330542 #421505 #144205 #053342
square
#330542 #421505 #144205 #053342
split-complementary
#330542 #334205 #054215
monochromatic
#16021C #16021C #330542 #5F097B #8B0EB4

Accessibility & contrast

On white

16.92
#330542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330542
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330542#FFFFFF#000000##FFFFFF
##3305421.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#031E41
Tritanopia (blue-blind)
#321424
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #330542;
/* rgb */ color: rgb(51, 5, 66);
/* oklch */ color: oklch(24.4% 0.109 315.8);
Tailwind
colors: {
  custom: {
    50: '#6e4c77',
    500: '#330542',
    950: '#000000',
  },
}
SCSS
$custom: #330542;
$custom-light: #6e4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#330542",
  "rgb": {
    "r": 51,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 285.246,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24384,
    "c": 0.10929,
    "h": 315.8
  },
  "luminance": 0.01206
}

Semantic roles & 50–950 ramp

primary
#330542
secondary
#398220
accent
#FC2C5F
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #330542

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

Preview Lab → · Contrast checker → · Palette generator →

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