#3F216E#3F216E

#3F216E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.127 H 296.9°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#3F216E
RGBrgb(63, 33, 110)
HSLhsl(263, 54%, 28%)
HSVhsv(263, 70%, 43%)
CMYKcmyk(42.7%, 70%, 0%, 56.9%)
CIE-LABlab(21.10, 32.41, -39.55)
CIE-LCHlch(21.10, 51.14, 309.33°)
OKLaboklab(33.39% 0.0572 -0.1129)
OKLCHoklch(33.39% 0.127 296.9)
XYZxyz(5.4075, 3.2702, 15.0951)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F216E #506E21
analogous
#21296E #3F216E #65216E
triadic
#3F216E #6E3F21 #216E3F
tetradic
#3F216E #6E2129 #506E21 #216E65
square
#3F216E #6E2129 #506E21 #216E65
split-complementary
#3F216E #6E6521 #296E21
monochromatic
#0D0718 #24133F #3F216E #5A2F9D #7643C7

Accessibility & contrast

On white

12.70
#3F216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3F216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F216E
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F216E#FFFFFF#000000##FFFFFF
##3F216E1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#333344
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f216e;
/* rgb */ color: rgb(63, 33, 110);
/* oklch */ color: oklch(33.4% 0.127 296.9);
Tailwind
colors: {
  custom: {
    50: '#785e98',
    500: '#3f216e',
    950: '#000000',
  },
}
SCSS
$custom: #3f216e;
$custom-light: #785e98;
$custom-dark: #000000;
JSON
{
  "hex": "#3f216e",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 263.377,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33393,
    "c": 0.12653,
    "h": 296.9
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

primary
#3F216E
secondary
#7FA249
accent
#DD4BA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3F216E

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

Preview Lab → · Contrast checker → · Palette generator →

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