#330C9B#330C9B

#330C9B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.6% C 0.198 H 280.8°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#330C9B
RGBrgb(51, 12, 155)
HSLhsl(256, 86%, 33%)
HSVhsv(256, 92%, 61%)
CMYKcmyk(67.1%, 92.3%, 0%, 39.2%)
CIE-LABlab(21.33, 52.70, -67.57)
CIE-LCHlch(21.33, 85.70, 307.95°)
OKLaboklab(34.64% 0.0371 -0.1949)
OKLCHoklch(34.64% 0.198 280.8)
XYZxyz(7.4112, 3.3327, 31.2567)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330C9B #749B0C
analogous
#0C2C9B #330C9B #7B0C9B
triadic
#330C9B #9B330C #0C9B33
tetradic
#330C9B #9B0C2C #749B0C #0C9B7B
square
#330C9B #9B0C2C #749B0C #0C9B7B
split-complementary
#330C9B #9B7B0C #2C9B0C
monochromatic
#0E0329 #200862 #330C9B #4610D4 #6632EF

Accessibility & contrast

On white

12.60
#330C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#330C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330C9B
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330C9B#FFFFFF#000000##FFFFFF
##330C9B1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389F
Deuteranopia (green-blind)
#002E99
Tritanopia (blue-blind)
#003F5A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #330c9b;
/* rgb */ color: rgb(51, 12, 155);
/* oklch */ color: oklch(34.6% 0.198 280.8);
Tailwind
colors: {
  custom: {
    50: '#7b56ba',
    500: '#330c9b',
    950: '#000000',
  },
}
SCSS
$custom: #330c9b;
$custom-light: #7b56ba;
$custom-dark: #000000;
JSON
{
  "hex": "#330c9b",
  "rgb": {
    "r": 51,
    "g": 12,
    "b": 155
  },
  "hsl": {
    "h": 256.364,
    "s": 85.629,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34642,
    "c": 0.19841,
    "h": 280.8
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#330C9B
secondary
#A4CD36
accent
#FC2CC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0312
muted
#7C7881

Preview Lab

Preview with #330C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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