#3E278E#3E278E

#3E278E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.160 H 285.9°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#3E278E
RGBrgb(62, 39, 142)
HSLhsl(253, 57%, 35%)
HSVhsv(253, 73%, 56%)
CMYKcmyk(56.3%, 72.5%, 0%, 44.3%)
CIE-LABlab(25.04, 38.46, -53.39)
CIE-LCHlch(25.04, 65.80, 305.76°)
OKLaboklab(37.06% 0.0437 -0.1536)
OKLCHoklch(37.06% 0.16 285.9)
XYZxyz(7.5931, 4.4277, 26.0405)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E278E #778E27
analogous
#27438E #3E278E #71278E
triadic
#3E278E #8E3E27 #278E3E
tetradic
#3E278E #8E2743 #778E27 #278E71
square
#3E278E #8E2743 #778E27 #278E71
split-complementary
#3E278E #8E7127 #438E27
monochromatic
#140D2E #291A5E #3E278E #5334BE #775DD2

Accessibility & contrast

On white

11.14
#3E278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3E278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E278E
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E278E#FFFFFF#000000##FFFFFF
##3E278E1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#1A4258
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e278e;
/* rgb */ color: rgb(62, 39, 142);
/* oklch */ color: oklch(37.1% 0.160 285.9);
Tailwind
colors: {
  custom: {
    50: '#7c63b0',
    500: '#3e278e',
    950: '#000000',
  },
}
SCSS
$custom: #3e278e;
$custom-light: #7c63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e278e",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 253.398,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3706,
    "c": 0.15967,
    "h": 285.9
  },
  "luminance": 0.04428
}

Semantic roles & 50–950 ramp

primary
#3E278E
secondary
#A3B859
accent
#E048BE
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3E278E

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

Preview Lab → · Contrast checker → · Palette generator →

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