#330C57#330C57

#330C57 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.123 H 301.9°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#330C57
RGBrgb(51, 12, 87)
HSLhsl(271, 76%, 19%)
HSVhsv(271, 86%, 34%)
CMYKcmyk(41.4%, 86.2%, 0%, 65.9%)
CIE-LABlab(13.56, 34.31, -36.68)
CIE-LCHlch(13.56, 50.23, 313.09°)
OKLaboklab(27.05% 0.0653 -0.1048)
OKLCHoklch(27.05% 0.123 301.9)
XYZxyz(3.2166, 1.6549, 9.1649)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330C57 #30570C
analogous
#0D0C57 #330C57 #570C56
triadic
#330C57 #57330C #0C5733
tetradic
#330C57 #570D0C #30570C #0C5657
square
#330C57 #570D0C #30570C #0C5657
split-complementary
#330C57 #56570C #0C570D
monochromatic
#10041B #130521 #330C57 #53138D #721BC3

Accessibility & contrast

On white

15.78
#330C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#330C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330C57
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330C57#FFFFFF#000000##FFFFFF
##330C571.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#2B2132
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #330c57;
/* rgb */ color: rgb(51, 12, 87);
/* oklch */ color: oklch(27.1% 0.123 301.9);
Tailwind
colors: {
  custom: {
    50: '#6f5087',
    500: '#330c57',
    950: '#000000',
  },
}
SCSS
$custom: #330c57;
$custom-light: #6f5087;
$custom-dark: #000000;
JSON
{
  "hex": "#330c57",
  "rgb": {
    "r": 51,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 271.2,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27052,
    "c": 0.12345,
    "h": 301.9
  },
  "luminance": 0.01655
}

Semantic roles & 50–950 ramp

primary
#330C57
secondary
#5D922D
accent
#F23590
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #330C57

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

Preview Lab → · Contrast checker → · Palette generator →

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