#3E1274#3E1274

#3E1274 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.151 H 297.0°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#3E1274
RGBrgb(62, 18, 116)
HSLhsl(267, 73%, 26%)
HSVhsv(267, 84%, 45%)
CMYKcmyk(46.6%, 84.5%, 0%, 54.5%)
CIE-LABlab(18.88, 41.35, -47.06)
CIE-LCHlch(18.88, 62.64, 311.30°)
OKLaboklab(31.97% 0.0687 -0.1349)
OKLCHoklch(31.97% 0.151 297)
XYZxyz(5.3545, 2.7176, 16.7620)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1274 #487412
analogous
#121774 #3E1274 #6F1274
triadic
#3E1274 #743E12 #12743E
tetradic
#3E1274 #741217 #487412 #12746F
square
#3E1274 #741217 #487412 #12746F
split-complementary
#3E1274 #746F12 #177412
monochromatic
#0E041A #220A3F #3E1274 #5A1AA9 #7723DD

Accessibility & contrast

On white

13.60
#3E1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3E1274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1274
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1274#FFFFFF#000000##FFFFFF
##3E12741.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#2F2E44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e1274;
/* rgb */ color: rgb(62, 18, 116);
/* oklch */ color: oklch(32.0% 0.151 297.0);
Tailwind
colors: {
  custom: {
    50: '#7a579d',
    500: '#3e1274',
    950: '#000000',
  },
}
SCSS
$custom: #3e1274;
$custom-light: #7a579d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1274",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 266.939,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31966,
    "c": 0.15133,
    "h": 297
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#3E1274
secondary
#77AB37
accent
#F0389D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1274

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

Preview Lab → · Contrast checker → · Palette generator →

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