#3E155F#3E155F

#3E155F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.124 H 305.3°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#3E155F
RGBrgb(62, 21, 95)
HSLhsl(273, 64%, 23%)
HSVhsv(273, 78%, 37%)
CMYKcmyk(34.7%, 77.9%, 0%, 62.7%)
CIE-LABlab(17.40, 34.48, -35.73)
CIE-LCHlch(17.40, 49.65, 313.98°)
OKLaboklab(30.33% 0.072 -0.1016)
OKLCHoklch(30.33% 0.125 305.3)
XYZxyz(4.3199, 2.3867, 11.0574)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E155F #365F15
analogous
#19155F #3E155F #5F155B
triadic
#3E155F #5F3E15 #155F3E
tetradic
#3E155F #5F1915 #365F15 #155B5F
square
#3E155F #5F1915 #365F15 #155B5F
split-complementary
#3E155F #5B5F15 #155F19
monochromatic
#100619 #1D0A2D #3E155F #5F2091 #7F2BC3

Accessibility & contrast

On white

14.21
#3E155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E155F
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E155F#FFFFFF#000000##FFFFFF
##3E155F1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#382738
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3e155f;
/* rgb */ color: rgb(62, 21, 95);
/* oklch */ color: oklch(30.3% 0.124 305.3);
Tailwind
colors: {
  custom: {
    50: '#77578d',
    500: '#3e155f',
    950: '#000000',
  },
}
SCSS
$custom: #3e155f;
$custom-light: #77578d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e155f",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 273.243,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30332,
    "c": 0.1245,
    "h": 305.3
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#3E155F
secondary
#63963A
accent
#E7418B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E155F

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

Preview Lab → · Contrast checker → · Palette generator →

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