#3E1267#3E1267

#3E1267 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.137 H 302.1°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#3E1267
RGBrgb(62, 18, 103)
HSLhsl(271, 70%, 24%)
HSVhsv(271, 83%, 40%)
CMYKcmyk(39.8%, 82.5%, 0%, 59.6%)
CIE-LABlab(17.63, 37.93, -40.64)
CIE-LCHlch(17.63, 55.59, 313.03°)
OKLaboklab(30.71% 0.0729 -0.116)
OKLCHoklch(30.71% 0.137 302.1)
XYZxyz(4.6505, 2.4360, 13.0545)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1267 #3B6712
analogous
#131267 #3E1267 #671265
triadic
#3E1267 #673E12 #12673E
tetradic
#3E1267 #671312 #3B6712 #126567
square
#3E1267 #671312 #3B6712 #126567
split-complementary
#3E1267 #656712 #126713
monochromatic
#10051A #1F0933 #3E1267 #5D1B9B #7D24CF

Accessibility & contrast

On white

14.12
#3E1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1267
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1267#FFFFFF#000000##FFFFFF
##3E12671.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002B65
Tritanopia (blue-blind)
#35293C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3e1267;
/* rgb */ color: rgb(62, 18, 103);
/* oklch */ color: oklch(30.7% 0.137 302.1);
Tailwind
colors: {
  custom: {
    50: '#785693',
    500: '#3e1267',
    950: '#000000',
  },
}
SCSS
$custom: #3e1267;
$custom-light: #785693;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1267",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 271.059,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30714,
    "c": 0.13704,
    "h": 302.1
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#3E1267
secondary
#699F36
accent
#ED3B91
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1267

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

Preview Lab → · Contrast checker → · Palette generator →

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