#3C217D#3C217D

#3C217D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.145 H 290.0°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#3C217D
RGBrgb(60, 33, 125)
HSLhsl(258, 58%, 31%)
HSVhsv(258, 74%, 49%)
CMYKcmyk(52%, 73.6%, 0%, 51%)
CIE-LABlab(22.05, 36.27, -47.63)
CIE-LCHlch(22.05, 59.87, 307.29°)
OKLaboklab(34.4% 0.0498 -0.1367)
OKLCHoklch(34.4% 0.145 290)
XYZxyz(6.1079, 3.5288, 19.7574)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C217D #627D21
analogous
#21347D #3C217D #6A217D
triadic
#3C217D #7D3C21 #217D3C
tetradic
#3C217D #7D2134 #627D21 #217D6A
square
#3C217D #7D2134 #627D21 #217D6A
split-complementary
#3C217D #7D6A21 #347D21
monochromatic
#0E071C #25144D #3C217D #532EAD #7149CF

Accessibility & contrast

On white

12.31
#3C217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3C217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C217D
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C217D#FFFFFF#000000##FFFFFF
##3C217D1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#25394C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c217d;
/* rgb */ color: rgb(60, 33, 125);
/* oklch */ color: oklch(34.4% 0.145 290.0);
Tailwind
colors: {
  custom: {
    50: '#795fa3',
    500: '#3c217d',
    950: '#000000',
  },
}
SCSS
$custom: #3c217d;
$custom-light: #795fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3c217d",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 257.609,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.344,
    "c": 0.14549,
    "h": 290
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

primary
#3C217D
secondary
#92B04A
accent
#E146B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3C217D

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

Preview Lab → · Contrast checker → · Palette generator →

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