#3E176E#3E176E

#3E176E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.139 H 298.4°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#3E176E
RGBrgb(62, 23, 110)
HSLhsl(267, 65%, 26%)
HSVhsv(267, 79%, 43%)
CMYKcmyk(43.6%, 79.1%, 0%, 56.9%)
CIE-LABlab(19.07, 37.52, -42.86)
CIE-LCHlch(19.07, 56.97, 311.20°)
OKLaboklab(31.92% 0.0663 -0.1226)
OKLCHoklch(31.92% 0.139 298.4)
XYZxyz(5.1068, 2.7626, 15.0130)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E176E #476E17
analogous
#171B6E #3E176E #69176E
triadic
#3E176E #6E3E17 #176E3E
tetradic
#3E176E #6E171B #476E17 #176E69
square
#3E176E #6E171B #476E17 #176E69
split-complementary
#3E176E #6E6917 #1B6E17
monochromatic
#0E0519 #210C3B #3E176E #5B22A1 #772CD3

Accessibility & contrast

On white

13.53
#3E176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3E176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E176E
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E176E#FFFFFF#000000##FFFFFF
##3E176E1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#322E41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e176e;
/* rgb */ color: rgb(62, 23, 110);
/* oklch */ color: oklch(31.9% 0.139 298.4);
Tailwind
colors: {
  custom: {
    50: '#795998',
    500: '#3e176e',
    950: '#000000',
  },
}
SCSS
$custom: #3e176e;
$custom-light: #795998;
$custom-dark: #000000;
JSON
{
  "hex": "#3e176e",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 266.897,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31923,
    "c": 0.13936,
    "h": 298.4
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#3E176E
secondary
#76A43D
accent
#E83F9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E176E

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

Preview Lab → · Contrast checker → · Palette generator →

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