#3E1273#3E1273

#3E1273 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.150 H 297.3°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#3E1273
RGBrgb(62, 18, 115)
HSLhsl(267, 73%, 26%)
HSVhsv(267, 84%, 45%)
CMYKcmyk(46.1%, 84.3%, 0%, 54.9%)
CIE-LABlab(18.78, 41.08, -46.58)
CIE-LCHlch(18.78, 62.11, 311.41°)
OKLaboklab(31.87% 0.069 -0.1334)
OKLCHoklch(31.87% 0.15 297.3)
XYZxyz(5.2966, 2.6944, 16.4574)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1273 #477312
analogous
#121773 #3E1273 #6E1273
triadic
#3E1273 #733E12 #12733E
tetradic
#3E1273 #731217 #477312 #12736E
square
#3E1273 #731217 #477312 #12736E
split-complementary
#3E1273 #736E12 #177312
monochromatic
#0E041A #210A3E #3E1273 #5B1AA8 #7723DD

Accessibility & contrast

On white

13.65
#3E1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1273
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1273#FFFFFF#000000##FFFFFF
##3E12731.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#302E43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e1273;
/* rgb */ color: rgb(62, 18, 115);
/* oklch */ color: oklch(31.9% 0.150 297.3);
Tailwind
colors: {
  custom: {
    50: '#7a569c',
    500: '#3e1273',
    950: '#000000',
  },
}
SCSS
$custom: #3e1273;
$custom-light: #7a569c;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1273",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 267.216,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31867,
    "c": 0.15023,
    "h": 297.3
  },
  "luminance": 0.02695
}

Semantic roles & 50–950 ramp

primary
#3E1273
secondary
#76AA37
accent
#F0389C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1273

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

Preview Lab → · Contrast checker → · Palette generator →

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