#3E2D78#3E2D78

#3E2D78 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.1% C 0.122 H 289.2°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#3E2D78
RGBrgb(62, 45, 120)
HSLhsl(254, 45%, 32%)
HSVhsv(254, 63%, 47%)
CMYKcmyk(48.3%, 62.5%, 0%, 52.9%)
CIE-LABlab(24.50, 27.92, -40.45)
CIE-LCHlch(24.50, 49.15, 304.62°)
OKLaboklab(36.09% 0.0403 -0.1156)
OKLCHoklch(36.09% 0.122 289.2)
XYZxyz(6.3142, 4.2567, 18.2546)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2D78 #67782D
analogous
#2D4178 #3E2D78 #642D78
triadic
#3E2D78 #783E2D #2D783E
tetradic
#3E2D78 #782D41 #67782D #2D7864
square
#3E2D78 #782D41 #67782D #2D7864
split-complementary
#3E2D78 #78642D #41782D
monochromatic
#100C1F #271C4B #3E2D78 #553EA5 #745DC2

Accessibility & contrast

On white

11.34
#3E2D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E2D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2D78
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2D78#FFFFFF#000000##FFFFFF
##3E2D781.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#2C3E4E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2d78;
/* rgb */ color: rgb(62, 45, 120);
/* oklch */ color: oklch(36.1% 0.122 289.2);
Tailwind
colors: {
  custom: {
    50: '#7867a0',
    500: '#3e2d78',
    950: '#000000',
  },
}
SCSS
$custom: #3e2d78;
$custom-light: #7867a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2d78",
  "rgb": {
    "r": 62,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 253.6,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36091,
    "c": 0.12239,
    "h": 289.2
  },
  "luminance": 0.04257
}

Semantic roles & 50–950 ramp

primary
#3E2D78
secondary
#96A958
accent
#D553B8
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060F
muted
#7B7A7E

Preview Lab

Preview with #3E2D78

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

Preview Lab → · Contrast checker → · Palette generator →

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