#3F217C#3F217C

#3F217C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.144 H 292.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3F217C
RGBrgb(63, 33, 124)
HSLhsl(260, 58%, 31%)
HSVhsv(260, 73%, 49%)
CMYKcmyk(49.2%, 73.4%, 0%, 51.4%)
CIE-LABlab(22.30, 36.52, -46.57)
CIE-LCHlch(22.30, 59.18, 308.10°)
OKLaboklab(34.63% 0.0547 -0.1335)
OKLCHoklch(34.63% 0.144 292.3)
XYZxyz(6.2308, 3.5995, 19.4313)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F217C #5E7C21
analogous
#21307C #3F217C #6C217C
triadic
#3F217C #7C3F21 #217C3F
tetradic
#3F217C #7C2130 #5E7C21 #217C6C
square
#3F217C #7C2130 #5E7C21 #217C6C
split-complementary
#3F217C #7C6C21 #307C21
monochromatic
#0E071B #26144C #3F217C #582EAC #7549CF

Accessibility & contrast

On white

12.21
#3F217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F217C
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F217C#FFFFFF#000000##FFFFFF
##3F217C1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#2C384C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f217c;
/* rgb */ color: rgb(63, 33, 124);
/* oklch */ color: oklch(34.6% 0.144 292.3);
Tailwind
colors: {
  custom: {
    50: '#7a5fa3',
    500: '#3f217c',
    950: '#000000',
  },
}
SCSS
$custom: #3f217c;
$custom-light: #7a5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f217c",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 259.78,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34631,
    "c": 0.14425,
    "h": 292.3
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#3F217C
secondary
#8EAF4A
accent
#E147AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F217C

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

Preview Lab → · Contrast checker → · Palette generator →

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