#3E2175#3E2175

#3E2175 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.135 H 293.7°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#3E2175
RGBrgb(62, 33, 117)
HSLhsl(261, 56%, 29%)
HSVhsv(261, 72%, 46%)
CMYKcmyk(47%, 71.8%, 0%, 54.1%)
CIE-LABlab(21.56, 34.26, -43.30)
CIE-LCHlch(21.56, 55.22, 308.35°)
OKLaboklab(33.89% 0.0545 -0.1239)
OKLCHoklch(33.89% 0.135 293.7)
XYZxyz(5.7405, 3.3960, 17.1792)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2175 #587521
analogous
#212E75 #3E2175 #682175
triadic
#3E2175 #753E21 #21753E
tetradic
#3E2175 #75212E #587521 #217568
square
#3E2175 #75212E #587521 #217568
split-complementary
#3E2175 #756821 #2E7521
monochromatic
#0D0718 #251445 #3E2175 #572EA5 #7446CB

Accessibility & contrast

On white

12.51
#3E2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3E2175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2175
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2175#FFFFFF#000000##FFFFFF
##3E21751.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#2E3648
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e2175;
/* rgb */ color: rgb(62, 33, 117);
/* oklch */ color: oklch(33.9% 0.135 293.7);
Tailwind
colors: {
  custom: {
    50: '#795f9d',
    500: '#3e2175',
    950: '#000000',
  },
}
SCSS
$custom: #3e2175;
$custom-light: #795f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2175",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 260.714,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33887,
    "c": 0.13539,
    "h": 293.7
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#3E2175
secondary
#88A84A
accent
#DF49AB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E2175

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

Preview Lab → · Contrast checker → · Palette generator →

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