#330640#330640

#330640 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.106 H 317.1°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#330640
RGBrgb(51, 6, 64)
HSLhsl(287, 83%, 14%)
HSVhsv(287, 91%, 25%)
CMYKcmyk(20.3%, 90.6%, 0%, 74.9%)
CIE-LABlab(10.59, 31.17, -25.58)
CIE-LCHlch(10.59, 40.32, 320.63°)
OKLaboklab(24.32% 0.0776 -0.0721)
OKLCHoklch(24.32% 0.106 317.1)
XYZxyz(2.3556, 1.2043, 4.9579)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330640 #134006
analogous
#160640 #330640 #400630
triadic
#330640 #403306 #064033
tetradic
#330640 #401606 #134006 #063040
square
#330640 #401606 #134006 #063040
split-complementary
#330640 #304006 #064016
monochromatic
#16031C #16031C #330640 #600B78 #8C10B0

Accessibility & contrast

On white

16.92
#330640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#330640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330640
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330640#FFFFFF#000000##FFFFFF
##3306401.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#321323
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #330640;
/* rgb */ color: rgb(51, 6, 64);
/* oklch */ color: oklch(24.3% 0.106 317.1);
Tailwind
colors: {
  custom: {
    50: '#6d4c75',
    500: '#330640',
    950: '#000000',
  },
}
SCSS
$custom: #330640;
$custom-light: #6d4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#330640",
  "rgb": {
    "r": 51,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 286.552,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24323,
    "c": 0.10594,
    "h": 317.1
  },
  "luminance": 0.01204
}

Semantic roles & 50–950 ramp

primary
#330640
secondary
#378022
accent
#F92F5C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #330640

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

Preview Lab → · Contrast checker → · Palette generator →

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