#3F216A#3F216A

#3F216A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.121 H 298.4°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#3F216A
RGBrgb(63, 33, 106)
HSLhsl(265, 53%, 27%)
HSVhsv(265, 69%, 42%)
CMYKcmyk(40.6%, 68.9%, 0%, 58.4%)
CIE-LABlab(20.77, 31.26, -37.49)
CIE-LCHlch(20.77, 48.81, 309.82°)
OKLaboklab(33.06% 0.0577 -0.1068)
OKLCHoklch(33.06% 0.121 298.4)
XYZxyz(5.1946, 3.1850, 13.9740)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F216A #4C6A21
analogous
#21276A #3F216A #64216A
triadic
#3F216A #6A3F21 #216A3F
tetradic
#3F216A #6A2127 #4C6A21 #216A64
square
#3F216A #6A2127 #4C6A21 #216A64
split-complementary
#3F216A #6A6421 #276A21
monochromatic
#0E0717 #23123B #3F216A #5B3099 #7741C4

Accessibility & contrast

On white

12.83
#3F216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3F216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F216A
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F216A#FFFFFF#000000##FFFFFF
##3F216A1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#003168
Tritanopia (blue-blind)
#353242
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f216a;
/* rgb */ color: rgb(63, 33, 106);
/* oklch */ color: oklch(33.1% 0.121 298.4);
Tailwind
colors: {
  custom: {
    50: '#785e95',
    500: '#3f216a',
    950: '#000000',
  },
}
SCSS
$custom: #3f216a;
$custom-light: #785e95;
$custom-dark: #000000;
JSON
{
  "hex": "#3f216a",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 264.658,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33057,
    "c": 0.12138,
    "h": 298.4
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#3F216A
secondary
#7B9E49
accent
#DC4CA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F216A

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

Preview Lab → · Contrast checker → · Palette generator →

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