#330C5C#330C5C

#330C5C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.5% C 0.129 H 299.5°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#330C5C
RGBrgb(51, 12, 92)
HSLhsl(269, 77%, 20%)
HSVhsv(269, 87%, 36%)
CMYKcmyk(44.6%, 87%, 0%, 63.9%)
CIE-LABlab(14.06, 35.65, -39.24)
CIE-LCHlch(14.06, 53.02, 312.25°)
OKLaboklab(27.55% 0.0636 -0.1123)
OKLCHoklch(27.55% 0.129 299.5)
XYZxyz(3.4280, 1.7394, 10.2783)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330C5C #355C0C
analogous
#0C0D5C #330C5C #5B0C5C
triadic
#330C5C #5C330C #0C5C33
tetradic
#330C5C #5C0C0D #355C0C #0C5C5B
square
#330C5C #5C0C0D #355C0C #0C5C5B
split-complementary
#330C5C #5C5B0C #0D5C0C
monochromatic
#0F041B #150526 #330C5C #511392 #6F1AC8

Accessibility & contrast

On white

15.58
#330C5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#330C5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330C5C
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330C5C#FFFFFF#000000##FFFFFF
##330C5C1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#292335
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #330c5c;
/* rgb */ color: rgb(51, 12, 92);
/* oklch */ color: oklch(27.5% 0.129 299.5);
Tailwind
colors: {
  custom: {
    50: '#70518b',
    500: '#330c5c',
    950: '#000000',
  },
}
SCSS
$custom: #330c5c;
$custom-light: #70518b;
$custom-dark: #000000;
JSON
{
  "hex": "#330c5c",
  "rgb": {
    "r": 51,
    "g": 12,
    "b": 92
  },
  "hsl": {
    "h": 269.25,
    "s": 76.923,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27548,
    "c": 0.12903,
    "h": 299.5
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#330C5C
secondary
#63972D
accent
#F33496
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #330C5C

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

Preview Lab → · Contrast checker → · Palette generator →

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