#3E1D7B#3E1D7B

#3E1D7B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.148 H 292.8°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#3E1D7B
RGBrgb(62, 29, 123)
HSLhsl(261, 62%, 30%)
HSVhsv(261, 76%, 48%)
CMYKcmyk(49.6%, 76.4%, 0%, 51.8%)
CIE-LABlab(21.33, 38.18, -47.52)
CIE-LCHlch(21.33, 60.96, 308.78°)
OKLaboklab(33.89% 0.0572 -0.1363)
OKLCHoklch(33.89% 0.148 292.8)
XYZxyz(6.0001, 3.3327, 19.0622)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D7B #5A7B1D
analogous
#1D2B7B #3E1D7B #6D1D7B
triadic
#3E1D7B #7B3E1D #1D7B3E
tetradic
#3E1D7B #7B1D2B #5A7B1D #1D7B6D
square
#3E1D7B #7B1D2B #5A7B1D #1D7B6D
split-complementary
#3E1D7B #7B6D1D #2B7B1D
monochromatic
#0C0619 #251149 #3E1D7B #5729AD #7440D2

Accessibility & contrast

On white

12.60
#3E1D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3E1D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D7B
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D7B#FFFFFF#000000##FFFFFF
##3E1D7B1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#2B364A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1d7b;
/* rgb */ color: rgb(62, 29, 123);
/* oklch */ color: oklch(33.9% 0.148 292.8);
Tailwind
colors: {
  custom: {
    50: '#7a5da2',
    500: '#3e1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d7b;
$custom-light: #7a5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d7b",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 261.064,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33888,
    "c": 0.14781,
    "h": 292.8
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#3E1D7B
secondary
#8AAF45
accent
#E543AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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