#330C40#330C40

#330C40 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 25.0% C 0.098 H 316.3°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#330C40
RGBrgb(51, 12, 64)
HSLhsl(285, 68%, 15%)
HSVhsv(285, 81%, 25%)
CMYKcmyk(20.3%, 81.2%, 0%, 74.9%)
CIE-LABlab(11.53, 28.46, -24.06)
CIE-LCHlch(11.53, 37.27, 319.80°)
OKLaboklab(24.99% 0.0707 -0.0677)
OKLCHoklch(24.99% 0.098 316.3)
XYZxyz(2.4220, 1.3370, 4.9800)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330C40 #19400C
analogous
#190C40 #330C40 #400C33
triadic
#330C40 #40330C #0C4033
tetradic
#330C40 #40190C #19400C #0C3340
square
#330C40 #40190C #19400C #0C3340
split-complementary
#330C40 #33400C #0C4019
monochromatic
#15051A #15051A #330C40 #5C1674 #851FA7

Accessibility & contrast

On white

16.57
#330C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#330C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330C40
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330C40#FFFFFF#000000##FFFFFF
##330C401.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#0C203F
Tritanopia (blue-blind)
#321725
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #330c40;
/* rgb */ color: rgb(51, 12, 64);
/* oklch */ color: oklch(25.0% 0.098 316.3);
Tailwind
colors: {
  custom: {
    50: '#6d4f75',
    500: '#330c40',
    950: '#000000',
  },
}
SCSS
$custom: #330c40;
$custom-light: #6d4f75;
$custom-dark: #000000;
JSON
{
  "hex": "#330c40",
  "rgb": {
    "r": 51,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 285,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24989,
    "c": 0.09788,
    "h": 316.3
  },
  "luminance": 0.01337
}

Semantic roles & 50–950 ramp

primary
#330C40
secondary
#407C2C
accent
#EB3D68
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #330C40

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

Preview Lab → · Contrast checker → · Palette generator →

#330C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva