#330847#330847

#330847 is a dark, moderate purple. Relative luminance 0.013; OKLCH L 25.2% C 0.110 H 311.9°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#330847
RGBrgb(51, 8, 71)
HSLhsl(281, 80%, 15%)
HSVhsv(281, 89%, 28%)
CMYKcmyk(28.2%, 88.7%, 0%, 72.2%)
CIE-LABlab(11.50, 31.91, -29.03)
CIE-LCHlch(11.50, 43.14, 317.70°)
OKLaboklab(25.15% 0.0738 -0.0823)
OKLCHoklch(25.15% 0.11 311.9)
XYZxyz(2.5892, 1.3325, 6.0808)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330847 #1C4708
analogous
#130847 #330847 #47083B
triadic
#330847 #473308 #084733
tetradic
#330847 #471308 #1C4708 #083B47
square
#330847 #471308 #1C4708 #083B47
split-complementary
#330847 #3B4708 #084713
monochromatic
#14031C #14031C #330847 #5B0E7E #8214B5

Accessibility & contrast

On white

16.58
#330847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#330847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330847
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330847#FFFFFF#000000##FFFFFF
##3308471.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#301828
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #330847;
/* rgb */ color: rgb(51, 8, 71);
/* oklch */ color: oklch(25.2% 0.110 311.9);
Tailwind
colors: {
  custom: {
    50: '#6e4e7b',
    500: '#330847',
    950: '#000000',
  },
}
SCSS
$custom: #330847;
$custom-light: #6e4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#330847",
  "rgb": {
    "r": 51,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 280.952,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25152,
    "c": 0.11049,
    "h": 311.9
  },
  "luminance": 0.01332
}

Semantic roles & 50–950 ramp

primary
#330847
secondary
#448526
accent
#F63270
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #330847

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

Preview Lab → · Contrast checker → · Palette generator →

#330847 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva