#3E2772#3E2772

#3E2772 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.6% C 0.123 H 293.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#3E2772
RGBrgb(62, 39, 114)
HSLhsl(258, 49%, 30%)
HSVhsv(258, 66%, 45%)
CMYKcmyk(45.6%, 65.8%, 0%, 55.3%)
CIE-LABlab(22.62, 29.81, -39.67)
CIE-LCHlch(22.62, 49.62, 306.92°)
OKLaboklab(34.57% 0.048 -0.1133)
OKLCHoklch(34.57% 0.123 293)
XYZxyz(5.7486, 3.6899, 16.3257)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2772 #5B7227
analogous
#273572 #3E2772 #642772
triadic
#3E2772 #723E27 #27723E
tetradic
#3E2772 #722735 #5B7227 #277264
square
#3E2772 #722735 #5B7227 #277264
split-complementary
#3E2772 #726427 #357227
monochromatic
#0C0817 #251744 #3E2772 #5737A0 #7350C3

Accessibility & contrast

On white

12.08
#3E2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3E2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2772
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2772#FFFFFF#000000##FFFFFF
##3E27721.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#2F3848
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e2772;
/* rgb */ color: rgb(62, 39, 114);
/* oklch */ color: oklch(34.6% 0.123 293.0);
Tailwind
colors: {
  custom: {
    50: '#78629b',
    500: '#3e2772',
    950: '#000000',
  },
}
SCSS
$custom: #3e2772;
$custom-light: #78629b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2772",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 258.4,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.34568,
    "c": 0.12301,
    "h": 293
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#3E2772
secondary
#8BA450
accent
#D94FAE
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E2772

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

Preview Lab → · Contrast checker → · Palette generator →

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