#330E42#330E42

#330E42 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.4% C 0.097 H 314.4°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#330E42
RGBrgb(51, 14, 66)
HSLhsl(283, 65%, 16%)
HSVhsv(283, 79%, 26%)
CMYKcmyk(22.7%, 78.8%, 0%, 74.1%)
CIE-LABlab(12.03, 27.98, -24.66)
CIE-LCHlch(12.03, 37.30, 318.60°)
OKLaboklab(25.4% 0.068 -0.0695)
OKLCHoklch(25.4% 0.097 314.4)
XYZxyz(2.5055, 1.4113, 5.2936)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330E42 #1D420E
analogous
#190E42 #330E42 #420E37
triadic
#330E42 #42330E #0E4233
tetradic
#330E42 #42190E #1D420E #0E3742
square
#330E42 #42190E #1D420E #0E3742
split-complementary
#330E42 #37420E #0E4219
monochromatic
#140519 #140519 #330E42 #5A1974 #8123A7

Accessibility & contrast

On white

16.38
#330E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#330E42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330E42
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330E42#FFFFFF#000000##FFFFFF
##330E421.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E44
Deuteranopia (green-blind)
#0C2041
Tritanopia (blue-blind)
#321926
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #330e42;
/* rgb */ color: rgb(51, 14, 66);
/* oklch */ color: oklch(25.4% 0.097 314.4);
Tailwind
colors: {
  custom: {
    50: '#6d5077',
    500: '#330e42',
    950: '#000000',
  },
}
SCSS
$custom: #330e42;
$custom-light: #6d5077;
$custom-dark: #000000;
JSON
{
  "hex": "#330e42",
  "rgb": {
    "r": 51,
    "g": 14,
    "b": 66
  },
  "hsl": {
    "h": 282.692,
    "s": 65,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25396,
    "c": 0.09722,
    "h": 314.4
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#330E42
secondary
#457D2F
accent
#E84070
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #330E42

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

Preview Lab → · Contrast checker → · Palette generator →

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