#3E1271#3E1271

#3E1271 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.148 H 298.1°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#3E1271
RGBrgb(62, 18, 113)
HSLhsl(268, 73%, 26%)
HSVhsv(268, 84%, 44%)
CMYKcmyk(45.1%, 84.1%, 0%, 55.7%)
CIE-LABlab(18.58, 40.56, -45.61)
CIE-LCHlch(18.58, 61.03, 311.64°)
OKLaboklab(31.67% 0.0697 -0.1306)
OKLCHoklch(31.67% 0.148 298.1)
XYZxyz(5.1828, 2.6489, 15.8578)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1271 #457112
analogous
#121671 #3E1271 #6D1271
triadic
#3E1271 #713E12 #12713E
tetradic
#3E1271 #711216 #457112 #12716D
square
#3E1271 #711216 #457112 #12716D
split-complementary
#3E1271 #716D12 #167112
monochromatic
#0E041A #210A3C #3E1271 #5B1AA6 #7823DB

Accessibility & contrast

On white

13.73
#3E1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3E1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1271
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1271#FFFFFF#000000##FFFFFF
##3E12711.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#312D42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e1271;
/* rgb */ color: rgb(62, 18, 113);
/* oklch */ color: oklch(31.7% 0.148 298.1);
Tailwind
colors: {
  custom: {
    50: '#79569b',
    500: '#3e1271',
    950: '#000000',
  },
}
SCSS
$custom: #3e1271;
$custom-light: #79569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1271",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 267.789,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3167,
    "c": 0.14804,
    "h": 298.1
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#3E1271
secondary
#74A837
accent
#EF399B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1271

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

Preview Lab → · Contrast checker → · Palette generator →

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