#3E1276#3E1276

#3E1276 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.154 H 296.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#3E1276
RGBrgb(62, 18, 118)
HSLhsl(266, 74%, 27%)
HSVhsv(266, 85%, 46%)
CMYKcmyk(47.5%, 84.7%, 0%, 53.7%)
CIE-LABlab(19.08, 41.88, -48.02)
CIE-LCHlch(19.08, 63.72, 311.09°)
OKLaboklab(32.17% 0.068 -0.1377)
OKLCHoklch(32.17% 0.154 296.3)
XYZxyz(5.4721, 2.7646, 17.3813)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1276 #4A7612
analogous
#121876 #3E1276 #701276
triadic
#3E1276 #763E12 #12763E
tetradic
#3E1276 #761218 #4A7612 #127670
square
#3E1276 #761218 #4A7612 #127670
split-complementary
#3E1276 #767012 #187612
monochromatic
#0E041B #220A41 #3E1276 #5A1AAB #7625DE

Accessibility & contrast

On white

13.52
#3E1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3E1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1276
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1276#FFFFFF#000000##FFFFFF
##3E12761.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#2E2F45
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e1276;
/* rgb */ color: rgb(62, 18, 118);
/* oklch */ color: oklch(32.2% 0.154 296.3);
Tailwind
colors: {
  custom: {
    50: '#7a579e',
    500: '#3e1276',
    950: '#000000',
  },
}
SCSS
$custom: #3e1276;
$custom-light: #7a579e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1276",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 266.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32165,
    "c": 0.15353,
    "h": 296.3
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#3E1276
secondary
#79AD37
accent
#F0389F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1276

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

Preview Lab → · Contrast checker → · Palette generator →

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