#330747#330747

#330747 is a dark, moderate purple. Relative luminance 0.013; OKLCH L 25.0% C 0.112 H 312.0°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#330747
RGBrgb(51, 7, 71)
HSLhsl(281, 82%, 15%)
HSVhsv(281, 90%, 28%)
CMYKcmyk(28.2%, 90.1%, 0%, 72.2%)
CIE-LABlab(11.35, 32.34, -29.28)
CIE-LCHlch(11.35, 43.62, 317.85°)
OKLaboklab(25.05% 0.0748 -0.083)
OKLCHoklch(25.05% 0.112 312)
XYZxyz(2.5783, 1.3108, 6.0772)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330747 #1B4707
analogous
#130747 #330747 #47073B
triadic
#330747 #473307 #074733
tetradic
#330747 #471307 #1B4707 #073B47
square
#330747 #471307 #1B4707 #073B47
split-complementary
#330747 #3B4707 #074713
monochromatic
#14031C #14031C #330747 #5B0C7F #8312B6

Accessibility & contrast

On white

16.64
#330747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#330747 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330747
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330747#FFFFFF#000000##FFFFFF
##3307471.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #330747;
/* rgb */ color: rgb(51, 7, 71);
/* oklch */ color: oklch(25.0% 0.112 312.0);
Tailwind
colors: {
  custom: {
    50: '#6e4d7b',
    500: '#330747',
    950: '#000000',
  },
}
SCSS
$custom: #330747;
$custom-light: #6e4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#330747",
  "rgb": {
    "r": 51,
    "g": 7,
    "b": 71
  },
  "hsl": {
    "h": 281.25,
    "s": 82.051,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25047,
    "c": 0.11172,
    "h": 312
  },
  "luminance": 0.01311
}

Semantic roles & 50–950 ramp

primary
#330747
secondary
#438624
accent
#F82F6E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #330747

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

Preview Lab → · Contrast checker → · Palette generator →

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