#3F216F#3F216F

#3F216F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.128 H 296.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#3F216F
RGBrgb(63, 33, 111)
HSLhsl(263, 54%, 28%)
HSVhsv(263, 70%, 44%)
CMYKcmyk(43.2%, 70.3%, 0%, 56.5%)
CIE-LABlab(21.18, 32.70, -40.07)
CIE-LCHlch(21.18, 51.72, 309.22°)
OKLaboklab(33.48% 0.057 -0.1144)
OKLCHoklch(33.48% 0.128 296.5)
XYZxyz(5.4622, 3.2921, 15.3835)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F216F #516F21
analogous
#212A6F #3F216F #66216F
triadic
#3F216F #6F3F21 #216F3F
tetradic
#3F216F #6F212A #516F21 #216F66
square
#3F216F #6F212A #516F21 #216F66
split-complementary
#3F216F #6F6621 #2A6F21
monochromatic
#0D0718 #241340 #3F216F #5A2F9E #7643C7

Accessibility & contrast

On white

12.66
#3F216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3F216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F216F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F216F#FFFFFF#000000##FFFFFF
##3F216F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#333445
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f216f;
/* rgb */ color: rgb(63, 33, 111);
/* oklch */ color: oklch(33.5% 0.128 296.5);
Tailwind
colors: {
  custom: {
    50: '#795e99',
    500: '#3f216f',
    950: '#000000',
  },
}
SCSS
$custom: #3f216f;
$custom-light: #795e99;
$custom-dark: #000000;
JSON
{
  "hex": "#3f216f",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 263.077,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33479,
    "c": 0.12781,
    "h": 296.5
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#3F216F
secondary
#80A349
accent
#DE4AA5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3F216F

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

Preview Lab → · Contrast checker → · Palette generator →

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