#330C9F

A color in the Violet family

#330c9f is a color in the Violet family: RGB(51, 12, 159), HSL(256°, 86%, 34%), CMYK(68%, 92%, 0%, 38%). Closest named color: indigo. Contrast is 12.4:1 on white and 1.69:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#330c9f
RGBrgb(51 12 159)
RGB (legacy)rgb(51, 12, 159)
RGB %rgb(20% 5% 62%)
HSLhsl(256 86% 34%)
HSV / HSBhsv(256, 92%, 62%)
HWBhwb(256 5% 38%)
CMYKcmyk(68%, 92%, 0%, 38%)
CIELAB (D50)lab(20.45 46.86 -71.2)
LCHlch(20.45 85.24 303.35)
OKLaboklab(0.3512 0.0354 -0.1996)
OKLCHoklch(0.3512 0.2027 280.07)
Decimal3345567

Properties

Color ToneViolet
Closest named colorindigo ΔE 7.6
Closest web-safe color#330099
Hue256°
Saturation (HSL / HSV)86% / 92%
Lightness (HSL)34%
Brightness or Value (HSV)62%
Luminance (Rec.601 / Rec.709)16% / 12%
Relative luminance (WCAG)0.0347
Red / Green / Blue51 / 12 / 159

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.40:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.69:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 96.4 / 0 · As background with white / black text: Lc -100.1 / 7.5

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #330c9f;
  --color-brand-oklch: oklch(35.12% 0.2027 280.07);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(51 12 159 / 50%); }
/* Tailwind CSS */
<div class="bg-[#330c9f] text-[#330c9f] border-[#330c9f]">