#330F42#330F42

#330F42 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.5% C 0.096 H 314.2°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#330F42
RGBrgb(51, 15, 66)
HSLhsl(282, 63%, 16%)
HSVhsv(282, 77%, 26%)
CMYKcmyk(22.7%, 77.3%, 0%, 74.1%)
CIE-LABlab(12.21, 27.47, -24.37)
CIE-LCHlch(12.21, 36.72, 318.42°)
OKLaboklab(25.53% 0.0667 -0.0686)
OKLCHoklch(25.53% 0.096 314.2)
XYZxyz(2.5193, 1.4389, 5.2982)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F42 #1E420F
analogous
#190F42 #330F42 #420F37
triadic
#330F42 #42330F #0F4233
tetradic
#330F42 #42190F #1E420F #0F3742
square
#330F42 #42190F #1E420F #0F3742
split-complementary
#330F42 #37420F #0F4219
monochromatic
#130619 #130619 #330F42 #5A1A74 #8026A6

Accessibility & contrast

On white

16.31
#330F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#330F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330F42
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F42#FFFFFF#000000##FFFFFF
##330F421.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#0D2141
Tritanopia (blue-blind)
#321927
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #330f42;
/* rgb */ color: rgb(51, 15, 66);
/* oklch */ color: oklch(25.5% 0.096 314.2);
Tailwind
colors: {
  custom: {
    50: '#6d5177',
    500: '#330f42',
    950: '#000000',
  },
}
SCSS
$custom: #330f42;
$custom-light: #6d5177;
$custom-dark: #000000;
JSON
{
  "hex": "#330f42",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 282.353,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25526,
    "c": 0.09572,
    "h": 314.2
  },
  "luminance": 0.01439
}

Semantic roles & 50–950 ramp

primary
#330F42
secondary
#477C30
accent
#E64272
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #330F42

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

Preview Lab → · Contrast checker → · Palette generator →

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