#3B217C#3B217C

#3B217C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.144 H 289.6°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#3B217C
RGBrgb(59, 33, 124)
HSLhsl(257, 58%, 31%)
HSVhsv(257, 73%, 49%)
CMYKcmyk(52.4%, 73.4%, 0%, 51.4%)
CIE-LABlab(21.84, 35.79, -47.33)
CIE-LCHlch(21.84, 59.34, 307.10°)
OKLaboklab(34.2% 0.0484 -0.1359)
OKLCHoklch(34.2% 0.144 289.6)
XYZxyz(5.9845, 3.4725, 19.4198)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B217C #627C21
analogous
#21347C #3B217C #68217C
triadic
#3B217C #7C3B21 #217C3B
tetradic
#3B217C #7C2134 #627C21 #217C68
square
#3B217C #7C2134 #627C21 #217C68
split-complementary
#3B217C #7C6821 #347C21
monochromatic
#0D071B #24144C #3B217C #522EAC #6F49CF

Accessibility & contrast

On white

12.39
#3B217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3B217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B217C
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B217C#FFFFFF#000000##FFFFFF
##3B217C1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#24394C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b217c;
/* rgb */ color: rgb(59, 33, 124);
/* oklch */ color: oklch(34.2% 0.144 289.6);
Tailwind
colors: {
  custom: {
    50: '#785fa3',
    500: '#3b217c',
    950: '#000000',
  },
}
SCSS
$custom: #3b217c;
$custom-light: #785fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b217c",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 257.143,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.342,
    "c": 0.14425,
    "h": 289.6
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#3B217C
secondary
#92AF4A
accent
#E147B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3B217C

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

Preview Lab → · Contrast checker → · Palette generator →

#3B217C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva