#330742#330742

#330742 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.6% C 0.107 H 315.5°. Best body text is #FFFFFF at 16.80:1 contrast (WCAG AA passes).

Color values

HEX#330742
RGBrgb(51, 7, 66)
HSLhsl(285, 81%, 14%)
HSVhsv(285, 89%, 26%)
CMYKcmyk(22.7%, 89.4%, 0%, 74.1%)
CIE-LABlab(10.92, 31.17, -26.46)
CIE-LCHlch(10.92, 40.89, 319.67°)
OKLaboklab(24.61% 0.076 -0.0747)
OKLCHoklch(24.61% 0.107 315.5)
XYZxyz(2.4244, 1.2492, 5.2666)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330742 #164207
analogous
#160742 #330742 #420734
triadic
#330742 #423307 #074233
tetradic
#330742 #421607 #164207 #073442
square
#330742 #421607 #164207 #073442
split-complementary
#330742 #344207 #074216
monochromatic
#15031C #15031C #330742 #5E0D79 #8913B1

Accessibility & contrast

On white

16.80
#330742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#330742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330742
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330742#FFFFFF#000000##FFFFFF
##3307421.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#051E41
Tritanopia (blue-blind)
#321525
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #330742;
/* rgb */ color: rgb(51, 7, 66);
/* oklch */ color: oklch(24.6% 0.107 315.5);
Tailwind
colors: {
  custom: {
    50: '#6d4d77',
    500: '#330742',
    950: '#000000',
  },
}
SCSS
$custom: #330742;
$custom-light: #6d4d77;
$custom-dark: #000000;
JSON
{
  "hex": "#330742",
  "rgb": {
    "r": 51,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 284.746,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24605,
    "c": 0.1066,
    "h": 315.5
  },
  "luminance": 0.01249
}

Semantic roles & 50–950 ramp

primary
#330742
secondary
#3B8124
accent
#F73163
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #330742

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

Preview Lab → · Contrast checker → · Palette generator →

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