#3D1276#3D1276

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

Color values

HEX#3D1276
RGBrgb(61, 18, 118)
HSLhsl(266, 74%, 27%)
HSVhsv(266, 85%, 46%)
CMYKcmyk(48.3%, 84.7%, 0%, 53.7%)
CIE-LABlab(18.94, 41.73, -48.25)
CIE-LCHlch(18.94, 63.79, 310.86°)
OKLaboklab(32.04% 0.0663 -0.1384)
OKLCHoklch(32.04% 0.153 295.6)
XYZxyz(5.4099, 2.7326, 17.3784)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1276 #4B7612
analogous
#121976 #3D1276 #6F1276
triadic
#3D1276 #763D12 #12763D
tetradic
#3D1276 #761219 #4B7612 #12766F
square
#3D1276 #761219 #4B7612 #12766F
split-complementary
#3D1276 #766F12 #197612
monochromatic
#0E041B #220A41 #3D1276 #581AAB #7425DE

Accessibility & contrast

On white

13.58
#3D1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3D1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1276
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1276#FFFFFF#000000##FFFFFF
##3D12761.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#2D2F45
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d1276;
/* rgb */ color: rgb(61, 18, 118);
/* oklch */ color: oklch(32.0% 0.153 295.6);
Tailwind
colors: {
  custom: {
    50: '#79579e',
    500: '#3d1276',
    950: '#000000',
  },
}
SCSS
$custom: #3d1276;
$custom-light: #79579e;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1276",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 265.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32041,
    "c": 0.15343,
    "h": 295.6
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#3D1276
secondary
#7AAD37
accent
#F038A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1276

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

Preview Lab → · Contrast checker → · Palette generator →

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