#3E1167#3E1167

#3E1167 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.138 H 302.3°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#3E1167
RGBrgb(62, 17, 103)
HSLhsl(271, 72%, 24%)
HSVhsv(271, 83%, 40%)
CMYKcmyk(39.8%, 83.5%, 0%, 59.6%)
CIE-LABlab(17.48, 38.36, -40.88)
CIE-LCHlch(17.48, 56.06, 313.17°)
OKLaboklab(30.61% 0.0738 -0.1167)
OKLCHoklch(30.61% 0.138 302.3)
XYZxyz(4.6346, 2.4043, 13.0492)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1167 #3A6711
analogous
#131167 #3E1167 #671165
triadic
#3E1167 #673E11 #11673E
tetradic
#3E1167 #671311 #3A6711 #116567
square
#3E1167 #671311 #3A6711 #116567
split-complementary
#3E1167 #656711 #116713
monochromatic
#10041A #1E0832 #3E1167 #5E1A9C #7D22D0

Accessibility & contrast

On white

14.18
#3E1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3E1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1167
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1167#FFFFFF#000000##FFFFFF
##3E11671.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002B65
Tritanopia (blue-blind)
#35283C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3e1167;
/* rgb */ color: rgb(62, 17, 103);
/* oklch */ color: oklch(30.6% 0.138 302.3);
Tailwind
colors: {
  custom: {
    50: '#785593',
    500: '#3e1167',
    950: '#000000',
  },
}
SCSS
$custom: #3e1167;
$custom-light: #785593;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1167",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 271.395,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30611,
    "c": 0.13809,
    "h": 302.3
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#3E1167
secondary
#679F35
accent
#EE3990
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1167

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

Preview Lab → · Contrast checker → · Palette generator →

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