#330F5D#330F5D

#330F5D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.127 H 298.5°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#330F5D
RGBrgb(51, 15, 93)
HSLhsl(268, 72%, 21%)
HSVhsv(268, 84%, 36%)
CMYKcmyk(45.2%, 83.9%, 0%, 63.5%)
CIE-LABlab(14.60, 34.63, -39.02)
CIE-LCHlch(14.60, 52.17, 311.58°)
OKLaboklab(27.96% 0.0607 -0.1117)
OKLCHoklch(27.96% 0.127 298.5)
XYZxyz(3.5113, 1.8357, 10.5231)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F5D #395D0F
analogous
#0F125D #330F5D #5A0F5D
triadic
#330F5D #5D330F #0F5D33
tetradic
#330F5D #5D0F12 #395D0F #0F5D5A
square
#330F5D #5D0F12 #395D0F #0F5D5A
split-complementary
#330F5D #5D5A0F #125D0F
monochromatic
#0E041A #160628 #330F5D #501792 #6D20C6

Accessibility & contrast

On white

15.36
#330F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#330F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330F5D
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F5D#FFFFFF#000000##FFFFFF
##330F5D1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#282436
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #330f5d;
/* rgb */ color: rgb(51, 15, 93);
/* oklch */ color: oklch(28.0% 0.127 298.5);
Tailwind
colors: {
  custom: {
    50: '#70528c',
    500: '#330f5d',
    950: '#000000',
  },
}
SCSS
$custom: #330f5d;
$custom-light: #70528c;
$custom-dark: #000000;
JSON
{
  "hex": "#330f5d",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 267.692,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27957,
    "c": 0.12709,
    "h": 298.5
  },
  "luminance": 0.01836
}

Semantic roles & 50–950 ramp

primary
#330F5D
secondary
#689631
accent
#EF399B
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #330F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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