#3E175F#3E175F

#3E175F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.122 H 304.9°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#3E175F
RGBrgb(62, 23, 95)
HSLhsl(273, 61%, 23%)
HSVhsv(273, 76%, 37%)
CMYKcmyk(34.7%, 75.8%, 0%, 62.7%)
CIE-LABlab(17.75, 33.48, -35.15)
CIE-LCHlch(17.75, 48.55, 313.60°)
OKLaboklab(30.58% 0.0697 -0.0999)
OKLCHoklch(30.58% 0.122 304.9)
XYZxyz(4.3581, 2.4632, 11.0701)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E175F #385F17
analogous
#1A175F #3E175F #5F175C
triadic
#3E175F #5F3E17 #175F3E
tetradic
#3E175F #5F1A17 #385F17 #175C5F
square
#3E175F #5F1A17 #385F17 #175C5F
split-complementary
#3E175F #5C5F17 #175F1A
monochromatic
#100619 #1E0B2E #3E175F #5E2390 #7E2FC2

Accessibility & contrast

On white

14.07
#3E175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3E175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E175F
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E175F#FFFFFF#000000##FFFFFF
##3E175F1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e175f;
/* rgb */ color: rgb(62, 23, 95);
/* oklch */ color: oklch(30.6% 0.122 304.9);
Tailwind
colors: {
  custom: {
    50: '#77588d',
    500: '#3e175f',
    950: '#000000',
  },
}
SCSS
$custom: #3e175f;
$custom-light: #77588d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e175f",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 272.5,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30583,
    "c": 0.12185,
    "h": 304.9
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#3E175F
secondary
#65963C
accent
#E4448D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E175F

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

Preview Lab → · Contrast checker → · Palette generator →

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