#3E1272#3E1272

#3E1272 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.149 H 297.7°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#3E1272
RGBrgb(62, 18, 114)
HSLhsl(268, 73%, 26%)
HSVhsv(268, 84%, 45%)
CMYKcmyk(45.6%, 84.2%, 0%, 55.3%)
CIE-LABlab(18.68, 40.82, -46.09)
CIE-LCHlch(18.68, 61.57, 311.53°)
OKLaboklab(31.77% 0.0694 -0.132)
OKLCHoklch(31.77% 0.149 297.7)
XYZxyz(5.2394, 2.6716, 16.1559)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1272 #467212
analogous
#121672 #3E1272 #6E1272
triadic
#3E1272 #723E12 #12723E
tetradic
#3E1272 #721216 #467212 #12726E
square
#3E1272 #721216 #467212 #12726E
split-complementary
#3E1272 #726E12 #167212
monochromatic
#0E041A #210A3D #3E1272 #5B1AA7 #7723DC

Accessibility & contrast

On white

13.69
#3E1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3E1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1272
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1272#FFFFFF#000000##FFFFFF
##3E12721.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#302D43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e1272;
/* rgb */ color: rgb(62, 18, 114);
/* oklch */ color: oklch(31.8% 0.149 297.7);
Tailwind
colors: {
  custom: {
    50: '#7a569b',
    500: '#3e1272',
    950: '#000000',
  },
}
SCSS
$custom: #3e1272;
$custom-light: #7a569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1272",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 267.5,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31768,
    "c": 0.14913,
    "h": 297.7
  },
  "luminance": 0.02672
}

Semantic roles & 50–950 ramp

primary
#3E1272
secondary
#75A937
accent
#EF389C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1272

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

Preview Lab → · Contrast checker → · Palette generator →

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